@matheusbsbs / matheus-bagliano / commits / 5a92d19021
Fork 0

rebase: use git rev-parse -q

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Miklos Vajna committed Dec 3, 2008 at 14:26 UTC 5a92d190211c5f1277ea76752882a5f1104488f8
1 file changed +2 -2
git-rebase.sh
+2 -2
@@ -365,10 +365,10 @@ case "$#" in
365 switch_to="$2"
366
367 if git show-ref --verify --quiet -- "refs/heads/$2" &&
368 - branch=$(git rev-parse --verify "refs/heads/$2" 2>/dev/null)
368 + branch=$(git rev-parse -q --verify "refs/heads/$2")
369 then
370 head_name="refs/heads/$2"
371 - elif branch=$(git rev-parse --verify "$2" 2>/dev/null)
371 + elif branch=$(git rev-parse -q --verify "$2")
372 then
373 head_name="detached HEAD"
374 else