Skip to content

Commit

Permalink
git-fetch --update-head-ok typofix
Browse files Browse the repository at this point in the history
Martin Waitz noticed that one of the case arms had an impossible
choice.  It turns out that what it was checking was redundant and
the typo did not have any effect.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Oct 11, 2006
1 parent e88ee29 commit 9861718
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,10 @@ esac
# If the original head was empty (i.e. no "master" yet), or
# if we were told not to worry, we do not have to check.
case ",$update_head_ok,$orig_head," in
*,, | t,* )
case "$orig_head" in
'')
;;
*)
?*)
curr_head=$(git-rev-parse --verify HEAD 2>/dev/null)
if test "$curr_head" != "$orig_head"
then
Expand Down

0 comments on commit 9861718

Please sign in to comment.