From: Simon Ruderich Date: Wed, 18 Feb 2009 23:50:17 +0000 (+0100) Subject: Remove ".git" from repository output in sync.sh. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=353ee0e6fa2eb8a5a61bd263a588670c1570bb0b Remove ".git" from repository output in sync.sh. Also improve status output. --- diff --git a/sync.sh b/sync.sh index 7ffcd44..5745ae5 100755 --- a/sync.sh +++ b/sync.sh @@ -26,9 +26,12 @@ for project in `find . -name .git -type d`; do pwd=`pwd` cd "$project" + # Remove .git from repository name. + project=`echo "$project" | sed "s|.git||"` + # Display all commits not in the master branch. if [ $method = status ]; then - echo "$project status" + echo "status of $project" git log --graph --all --pretty=oneline master.. # Fetch from/Push to all remotes. else