Code

git-push: allow pushing from subdirectories
authorJeff King <peff@peff.net>
Tue, 8 Aug 2006 20:01:32 +0000 (16:01 -0400)
committerJunio C Hamano <junkio@cox.net>
Tue, 8 Aug 2006 20:30:10 +0000 (13:30 -0700)
The semantics are equivalent to pushing from the root; we just try harder to
find the .git directory.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git.c

diff --git a/git.c b/git.c
index 6e72a893b71129702551eca56c8221110286f14d..18ba14ade1bb60b59fd0288130ba098e9e76dac3 100644 (file)
--- a/git.c
+++ b/git.c
@@ -229,7 +229,7 @@ static void handle_internal_command(int argc, const char **argv, char **envp)
                { "log", cmd_log, NEEDS_PREFIX | USE_PAGER },
                { "whatchanged", cmd_whatchanged, NEEDS_PREFIX | USE_PAGER },
                { "show", cmd_show, NEEDS_PREFIX | USE_PAGER },
-               { "push", cmd_push },
+               { "push", cmd_push, NEEDS_PREFIX },
                { "format-patch", cmd_format_patch, NEEDS_PREFIX },
                { "count-objects", cmd_count_objects },
                { "diff", cmd_diff, NEEDS_PREFIX },