X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-stash.sh;h=908aab2659ca5d66d8091e474c484dd8d9b88c0c;hb=465ef577b59986d70c51ea72dd3f87759b2bcd4f;hp=59db3dc38e72fda88d521171a174c08b919677a9;hpb=02125bcc41aed022ddcb5955935726e50d89b60e;p=git.git diff --git a/git-stash.sh b/git-stash.sh index 59db3dc38..908aab265 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