Commit 49be45a18941cfe2e98fa3312e52c7ef4119fdcb

Etienne Samson 2016-12-26T22:15:31

pack: report revwalk error

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/pack-objects.c b/src/pack-objects.c
index 6dbb6cf..2e5de98 100644
--- a/src/pack-objects.c
+++ b/src/pack-objects.c
@@ -1738,7 +1738,7 @@ int git_packbuilder_insert_walk(git_packbuilder *pb, git_revwalk *walk)
 	if (error == GIT_ITEROVER)
 		error = 0;
 
-	return 0;
+	return error;
 }
 
 int git_packbuilder_set_callbacks(git_packbuilder *pb, git_packbuilder_progress progress_cb, void *progress_cb_payload)