From 6773d4ef94fa6d74b7361fd10f5bc7550542a50b Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 17 Oct 2016 11:30:48 +0200 Subject: produce less ugly paths to the commit template in submodules Change-Id: I7ebf3c46088e193c8f4605532c1f4a1b6d62d230 Reviewed-by: Simon Hausmann Reviewed-by: Edward Welbourne --- init-repository | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init-repository b/init-repository index 842af7d1..52efb201 100755 --- a/init-repository +++ b/init-repository @@ -522,7 +522,7 @@ sub git_clone_one_submodule $self->exe('git', 'config', 'remote.origin.url', $url); } - my $template = getcwd()."/../.commit-template"; + my $template = $orig_cwd."/.commit-template"; if (-e $template) { $self->exe('git', 'config', 'commit.template', $template); } -- cgit v1.2.3