From c14918415a36e93a84ed1f58ce079619f84e26fa Mon Sep 17 00:00:00 2001 From: Jeff King Date: Sat, 1 Mar 2008 01:22:55 -0500 Subject: [PATCH] allow git-am to run in a subdirectory We just move to the top of the tree and proceed. This shouldn't break any existing callers, since the behavior was previously disallowed. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- git-am.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git-am.sh b/git-am.sh index 2ecebc45a..a2c6fea47 100755 --- a/git-am.sh +++ b/git-am.sh @@ -2,6 +2,7 @@ # # Copyright (c) 2005, 2006 Junio C Hamano +SUBDIRECTORY_OK=Yes OPTIONS_KEEPDASHDASH= OPTIONS_SPEC="\ git-am [options] |... @@ -25,6 +26,7 @@ skip skip the current patch" . git-sh-setup set_reflog_action am require_work_tree +cd_to_toplevel git var GIT_COMMITTER_IDENT >/dev/null || exit -- 2.26.2