aboutsummaryrefslogtreecommitdiffgithub
diff options
context:
space:
mode:
authorAustin Adams <git@austinjadams.com>2017-02-27 11:14:49 -0500
committerAustin Adams <git@austinjadams.com>2017-02-27 11:14:49 -0500
commit6deaffe456d6a64654ac7bc51f3bc87234ea1ea9 (patch)
treede6a16926c2c307cc4e058ff97f62489bcb9ba47
parent66a5275a3c114be00cb9c93b954fc7476c9d20c6 (diff)
downloadgustave-6deaffe456d6a64654ac7bc51f3bc87234ea1ea9.tar.gz
gustave-6deaffe456d6a64654ac7bc51f3bc87234ea1ea9.tar.xz
If opening a repository fails, warn, don't exit
If opening a repository fails (if has no master branch, for instance), show a warning and keep going instead of exiting.
-rw-r--r--gustave.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gustave.c b/gustave.c
index 6ed0e16..6d366ee 100644
--- a/gustave.c
+++ b/gustave.c
@@ -48,8 +48,7 @@ int main(int argc, char **argv) {
while (head != NULL) {
if (!head->hidden) {
if (repo_commits(head, 32, add_commit, list)) {
- fprintf(stderr, "%s\n", repo_error());
- return 1;
+ fprintf(stderr, "%s: %s\n", head->name, repo_error());
}
}