Re: [PATCH amend] git-bisect.sh: don't accidentally override existing branch "bisect"
- From
Christian Couder <chriscool@tuxfamily.org>
- Date
- May 3, 2008, 08:42 UTC
- Message-ID
- <200805031042.32190.chriscool@tuxfamily.org>
- In-Reply-To
- <20080502085620.3361.qmail@17e811992e6d42.315fe32.mid.smarden.org>
Le vendredi 2 mai 2008, Gerrit Pape a écrit :
[...]
Show 7 quoted lines
> @@ -328,8 +333,8 @@ bisect_next() {
> exit_if_skipped_commits "$bisect_rev"
>
> echo "Bisecting: $bisect_nr revisions left to test after this"
> - git branch -f new-bisect "$bisect_rev"
> - git checkout -q new-bisect || exit
> + git branch -D new-bisectDoesn't this output an error if the branch "new-bisect" does not exists ?
$ git branch -D new-bisect error: branch 'new-bisect' not found.
> + git checkout -q -b new-bisect "$bisect_rev" || exit > git branch -M new-bisect bisect > git show-branch "$bisect_rev" > }
Thanks, Christian.