]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Merge commit 'rammstein/master'
authorSimon Ruderich <simon@ruderich.org>
Wed, 18 Feb 2009 20:03:43 +0000 (21:03 +0100)
committerSimon Ruderich <simon@ruderich.org>
Wed, 18 Feb 2009 20:03:43 +0000 (21:03 +0100)
Conflicts:

sync.sh

sync.sh

diff --git a/sync.sh b/sync.sh
index 498a2b3f894b600bd9deb849b6f8ed676e6f5cde..e76ce8e55a149d9af664291dfc6032f9fb06f8fb 100755 (executable)
--- a/sync.sh
+++ b/sync.sh
@@ -26,6 +26,9 @@ 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
         output=`git log --graph --all --pretty=oneline --color master..`
@@ -43,3 +46,8 @@ for project in `find . -name .git -type d`; do
 
     cd "$pwd"
 done
+
+# Run status after a fetch to see new changes.
+if [ $method = fetch ]; then
+    ./sync.sh status
+fi