stash: pass the pathspec argument to git reset
[gitweb.git] / git-stash.sh
index ba86d843219d756d65001980fa0e20565f20049a..13711764a90c122256272cb754a0f96cf333f0e3 100755 (executable)
@@ -322,7 +322,7 @@ push_stash () {
 
                if test "$keep_index" != "t"
                then
-                       git reset -q
+                       git reset -q -- "$@"
                fi
        fi
 }