From c31d9f1126dd87fefc5d36673a03ddfa753bf2b4 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 14 May 2017 14:26:09 -0300 Subject: Auto fetch changes on commit, fix staging check --- commit-updates | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'commit-updates') diff --git a/commit-updates b/commit-updates index b033348..082727d 100755 --- a/commit-updates +++ b/commit-updates @@ -13,11 +13,9 @@ if git status &> /dev/null; then else commit "Updates $(basename `pwd`)" fi - - git fetch --all else if [ ! -z "$1" ] && [ -d "$1" ]; then - ( cd $1 &> /dev/null && commit "Updates $(basename $1)" && git fetch --all ) + ( cd $1 &> /dev/null && commit "Updates $(basename $1)" ) else mr commit -m "Updates" mr fetch -- cgit v1.2.3