X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-stash.sh;h=0726a4a725d75212539c9fce9e657de04bc227c3;hb=b0e621adfd5a60b7cbe95e59f09c87f0870321cb;hp=3a0685f1893098e8f5c877f509183c8434e7c028;hpb=a0075d9e6ae211e8bde3eb40c8cdebb1772ee680;p=git.git diff --git a/git-stash.sh b/git-stash.sh index 3a0685f18..0726a4a72 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