X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-stash.sh;h=1d95447d03f342811dd77386f2e83d0814beabf2;hb=01aedc930b6c3b46d229e33ac6f70b3d91fc1d2b;hp=0f858d334c756f9cd4028b4950a3912d0f6182dd;hpb=a8c4d925caba244de842f8fa663c3e6bb7000b89;p=git.git diff --git a/git-stash.sh b/git-stash.sh index 0f858d334..1d95447d0 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -57,7 +57,7 @@ create_stash () { # state of the base commit if b_commit=$(git rev-parse --verify HEAD) then - head=$(git log --no-color --abbrev-commit --pretty=oneline -n 1 HEAD --) + head=$(git rev-list --oneline -n 1 HEAD --) else die "You do not have the initial commit yet" fi