threads / patch / 5177

patchgit-push: allow pushing from subdirectories

Subject: [PATCH] git-push: allow pushing from subdirectories

## tl;dr

One message between Aug 8, 2006 and Aug 8, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Jeff King· Aug 8, 2006, 20:01 UTC · lore

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>
---
 git.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to git.c +1 −1
diff --git a/git.c b/git.c
index 6e72a89..18ba14a 100644
--- a/git.c
+++ b/git.c
@@ -229,7 +229,7 @@ static void handle_internal_command(int 
 		{ "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 },
-- 
1.4.2.rc3.g07ef-dirty

← back to recent threads