]> asedeno.scripts.mit.edu Git - git.git/blobdiff - git-rebase.sh
git-rebase: report checkout failure
[git.git] / git-rebase.sh
index e2d85eeeab79e60ef46a65cfee1fb4682dd4ba68..7825f88952490705fa5272724c92cccff057cc12 100755 (executable)
@@ -376,9 +376,7 @@ fi
 
 # Detach HEAD and reset the tree
 echo "First, rewinding head to replay your work on top of it..."
-git checkout "$onto^0" >/dev/null 2>&1 ||
-       die "could not detach HEAD"
-# git reset --hard "$onto^0"
+git checkout -q "$onto^0" || die "could not detach HEAD"
 
 # If the $onto is a proper descendant of the tip of the branch, then
 # we just fast forwarded.