add submodule update --rebase
authorPierre Habouzit <madcoder@debian.org>
Sun, 6 Sep 2009 16:55:24 +0000 (18:55 +0200)
committerPierre Habouzit <madcoder@debian.org>
Sun, 6 Sep 2009 16:55:24 +0000 (18:55 +0200)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
+bin/git-up

index da40169..d9fc1cd 100755 (executable)
@@ -79,6 +79,7 @@ case "$action" in
     rebase)
         test -z "$unclean" || git stash save "git-up stash"
         git rebase "${remote}/${branch#refs/heads/}"
+        cd "$(dirname "$(git rev-parse --git-dir)")" && git submodule update --rebase
         ;;
     merge)
         test -z "$unclean" || git stash save "git-up stash"