]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - sync.sh
Remove ".git" from repository output in sync.sh.
[config/dotfiles.git] / 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