Skip to content

Commit

Permalink
write warnings/errors to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
Dieterbe committed Dec 1, 2010
1 parent 484cbec commit 7b3506f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions git-remote-in-sync.sh
Expand Up @@ -20,15 +20,15 @@ do
out=`git push --all -n $remote 2>&1`
if [ "$out" != 'Everything up-to-date' ];
then
echo -e "***** Dirty commits/branches: *****\n$out"
echo -e "***** Dirty commits/branches: *****\n$out" >&2
ret=1
fi

# check tags
out=`git push --tags -n $remote 2>&1`
if [ "$out" != 'Everything up-to-date' ];
then
echo -e "***** Dirty tags: *****\n$out"
echo -e "***** Dirty tags: *****\n$out" >&2
ret=1
fi
done
Expand All @@ -41,15 +41,15 @@ nothing to commit (working directory clean)"
out=`git status`
if [ "$out" != "$exp" ];
then
echo "***** Dirty WC or index *****"
echo "***** Dirty WC or index *****" >&2
git status
ret=1
fi

# stash
if [ `git stash list | wc -l` -gt 0 ];
then
echo "***** Dirty stash: *****"
echo "***** Dirty stash: *****" >&2
GIT_PAGER= git stash list
ret=1
fi
Expand Down

0 comments on commit 7b3506f

Please sign in to comment.