Unverified Commit 3461aaf7 by Edward Thomson Committed by GitHub

repo: minor formatting fix

parent bc0d1ad2
...@@ -2038,9 +2038,8 @@ static int repo_init_structure( ...@@ -2038,9 +2038,8 @@ static int repo_init_structure(
* `git` prints to stderr: 'warning: templates not found in /path/to/tdir' * `git` prints to stderr: 'warning: templates not found in /path/to/tdir'
*/ */
if (error < 0) { if (error < 0) {
if (!default_template && error != GIT_ENOTFOUND) { if (!default_template && error != GIT_ENOTFOUND)
return error; return error;
}
/* if template was default, ignore error and use internal */ /* if template was default, ignore error and use internal */
git_error_clear(); git_error_clear();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment