From 750c0f2de721cb636beb8b4822117c4671794f6f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 14 May 2017 14:10:32 -0300 Subject: Fetches repo at commit-updates --- commit-updates | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commit-updates b/commit-updates index a6aa245..b033348 100755 --- a/commit-updates +++ b/commit-updates @@ -13,10 +13,13 @@ 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)" ) + ( cd $1 &> /dev/null && commit "Updates $(basename $1)" && git fetch --all ) else mr commit -m "Updates" + mr fetch fi fi -- cgit v1.2.3