@matheusbsbs / matheus-bagliano / commits / 9861718b30
Fork 0

git-fetch --update-head-ok typofix

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>

Junio C Hamano committed Oct 10, 2006 at 22:29 UTC 9861718b305a672f3d17936ea6a6cbd9d9a70059
1 file changed +3 -3
git-fetch.sh
+3 -3
@@ -436,10 +436,10 @@ esac
436
437 # If the original head was empty (i.e. no "master" yet), or
438 # if we were told not to worry, we do not have to check.
439 -case ",$update_head_ok,$orig_head," in
440 -*,, | t,* )
439 +case "$orig_head" in
440 +'')
441 ;;
442 -*)
442 +?*)
443 curr_head=$(git-rev-parse --verify HEAD 2>/dev/null)
444 if test "$curr_head" != "$orig_head"
445 then