aboutsummaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2006-08-08 16:01:32 -0400
committerJunio C Hamano <junkio@cox.net>2006-08-08 13:30:10 -0700
commit6c8d06aff107aa2132648d682a278111c1d08565 (patch)
tree453e47184d5c04cf8a79c8c2c113b177085f36e9 /git.c
parentc96c29093f70f04e01ff1d3a9c1d509ef6afdb00 (diff)
downloadgit-6c8d06aff107aa2132648d682a278111c1d08565.tar.gz
git-6c8d06aff107aa2132648d682a278111c1d08565.tar.xz
git-push: allow pushing from subdirectories
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>
Diffstat (limited to 'git.c')
-rw-r--r--git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.c b/git.c
index 6e72a893b..18ba14ade 100644
--- 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 },