From: martin f. krafft Date: Thu, 20 Nov 2008 10:20:23 +0000 (+0100) Subject: allow -b to be used with collapse too X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=8a4c7c95885cc55e0dbad4a1d8421182c1407002;p=topgit.git allow -b to be used with collapse too --- diff --git a/.topmsg b/.topmsg index c3b9247..0d35f83 100644 --- a/.topmsg +++ b/.topmsg @@ -4,7 +4,7 @@ Subject: [PATCH] Unify export of branches Currently, tg-export does things a little differently whether -b is passed or not, when really -b should just default to the name of the current branch. --b could also make sense with the collapse driver. +-b can also be used with the collapse driver. Debian bug: #506284 Credits: Niko Tyni for spotting the bug and sending an diff --git a/tg-export.sh b/tg-export.sh index 8e98f46..ae32bf4 100644 --- a/tg-export.sh +++ b/tg-export.sh @@ -30,10 +30,6 @@ while [ -n "$1" ]; do done - -[ -z "$branches" -o "$driver" = "quilt" ] || - die "-b works only with the quilt driver" - if [ -z "$branches" ]; then # this check is only needed when no branches have been passed name="$(git symbolic-ref HEAD | sed 's#^refs/heads/##')"