]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Remove ".git" from repository output in sync.sh.
authorSimon Ruderich <simon@ruderich.org>
Wed, 18 Feb 2009 23:50:17 +0000 (00:50 +0100)
committerSimon Ruderich <simon@ruderich.org>
Wed, 18 Feb 2009 23:50:17 +0000 (00:50 +0100)
Also improve status output.

sync.sh

diff --git a/sync.sh b/sync.sh
index 7ffcd44f652c435882b796e63f86932b66233399..5745ae57215f7471a897a3f44b3d25fc8f0926b1 100755 (executable)
--- 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