produce less ugly paths to the commit template in submodules
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>
Mon, 17 Oct 2016 09:30:48 +0000 (11:30 +0200)
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>
Mon, 14 Nov 2016 12:17:36 +0000 (12:17 +0000)
Change-Id: I7ebf3c46088e193c8f4605532c1f4a1b6d62d230
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
init-repository

index 842af7d..52efb20 100755 (executable)
@@ -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);
     }