Commit b7b1acfdbdd2e9dc2abacfa97679180f4c07b0c1

Sebastian Bauer 2013-01-12T20:02:00

Clear local error variable after invoking giterr_clear().

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/repository.c b/src/repository.c
index 46b7f8f..2c567c8 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -1015,6 +1015,7 @@ static int repo_init_structure(
 			/* if template was default, ignore error and use internal */
 			giterr_clear();
 			external_tpl = false;
+			error = 0;
 		}
 	}