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>
Jeff King committed
Aug 8, 2006 at 16:01 UTC
6c8d06aff107aa2132648d682a278111c1d08565
1 file changed
+1
-1
git.c
+1
-1
@@ -229,7 +229,7 @@ static void handle_internal_command(int argc, const char **argv, char **envp)
229
{ "log", cmd_log, NEEDS_PREFIX | USE_PAGER },
230
{ "whatchanged", cmd_whatchanged, NEEDS_PREFIX | USE_PAGER },
231
{ "show", cmd_show, NEEDS_PREFIX | USE_PAGER },
232
- { "push", cmd_push },
232
+ { "push", cmd_push, NEEDS_PREFIX },
233
{ "format-patch", cmd_format_patch, NEEDS_PREFIX },
234
{ "count-objects", cmd_count_objects },
235
{ "diff", cmd_diff, NEEDS_PREFIX },