]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
do not purge if stash list not empty
authorElan Ruusamäe <glen@delfi.ee>
Sat, 9 Mar 2013 13:32:53 +0000 (15:32 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 9 Mar 2013 13:33:45 +0000 (15:33 +0200)
purge-packages.sh

index dd08128ba1da87789b29621bf14bf269d3ab86c6..520ae3b0b6c9ab173131b20051fa1924dd25e81a 100755 (executable)
@@ -18,11 +18,12 @@ for pkg in */.git; do
        pkg=${pkg%/.git}
        cd "$pkg"
        status=$(git status --porcelain)
+       stash=$(git stash list)
 
        # FIXME: does not currently handle if some pushes are not made!
-       if [ -n "$status" ]; then
+       if [ -n "$status" ] || [ -n "$stash" ]; then
                cat <<-EOF
-               * Package $pkg - Untracked files. Invoke gc
+               * Package $pkg - Untracked files or stash not empty. Invoke gc
 
                $status
                EOF
This page took 0.029692 seconds and 4 git commands to generate.