Commit 561c3678469226992b85a1fa3d10d79cd0826c53

Stefan Sperling 2019-07-02T11:48:15

fix detection of ambiguous object ID match with pack files

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/repository.c b/lib/repository.c
index 14de200..db26cff 100644
--- a/lib/repository.c
+++ b/lib/repository.c
@@ -948,7 +948,7 @@ match_packed_object(struct got_object_id **unique_id,
 				}
 			} else {
 				err = got_error(GOT_ERR_AMBIGUOUS_ID);
-				break;
+				goto done;
 			}
 		}
 	}