From 353ee0e6fa2eb8a5a61bd263a588670c1570bb0b Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 19 Feb 2009 00:50:17 +0100 Subject: [PATCH] Remove ".git" from repository output in sync.sh. Also improve status output. --- sync.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.44.1