From cfecc56816ac90c61fa9c4793220198d936d897d Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 2 Feb 2010 11:31:12 +0100 Subject: [PATCH] Make 'tg patch' work in subdirectories MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When 'tg patch' is called from a subdirectory, it outputs only the commit message and no diff. Signed-off-by: Michal Sojka Signed-off-by: Uwe Kleine-König --- tg-patch.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tg-patch.sh b/tg-patch.sh index d701c54..f703a87 100644 --- a/tg-patch.sh +++ b/tg-patch.sh @@ -56,6 +56,7 @@ git diff --name-only $diff_opts "$base_rev" ${diff_committed_only:+"$name"} -- | fgrep -vx ".topdeps" | fgrep -vx ".topmsg" >"$git_is_stupid" || : # fgrep likes to fail randomly? if [ -s "$git_is_stupid" ]; then + cd "$root_dir" cat "$git_is_stupid" | xargs git diff --patch-with-stat $diff_opts "$base_rev" ${diff_committed_only:+"$name"} -- else echo "No changes." -- 2.30.2