diff --git a/init-repository b/init-repository index fe115e2d..e9372155 100755 --- a/init-repository +++ b/init-repository @@ -630,7 +630,10 @@ sub git_install_hooks my ($self) = @_; my $hooks = $script_path.'/qtrepotools/git-hooks'; - return if (!-d $hooks); + if (!-d $hooks) { + print "Warning: cannot find Git hooks, qtrepotools module might be absent\n"; + return; + }; my @configresult = qx(git config --list --local); foreach my $line (@configresult) {