Commit 38651d6a authored by Dan Villiom Podlaski Christiansen's avatar Dan Villiom Podlaski Christiansen
Browse files

pull: don't add unknown refs

parent 9721b9f36ce5
Pipeline #29454 failed with stages
in 10 minutes and 17 seconds
......@@ -1711,7 +1711,9 @@
for ref_name, sha in refs.items():
hgsha = self.map_hg_get(sha)
if (
if sha not in self.git:
self.ui.debug(b'not adding unknown ref %s\n' % ref_name)
elif (
ref_name.startswith(LOCAL_BRANCH_PREFIX) and
hgsha is not None and hgsha in self.repo
):
......
......@@ -72,9 +72,6 @@
add alpha
$ GIT_DIR=$(hg debuggitdir) git tag -ln
error: refs/tags/alpha does not point to a valid object! (no-dulwich01916 !)
error: refs/tags/beta does not point to a valid object!
error: refs/tags/gamma does not point to a valid object!
alpha added tag alpha (dulwich01916 !)
$ cd ..
$ rm -rf hgrepo
......@@ -103,9 +100,6 @@
gamma added tag gamma
#else
$ GIT_DIR=$(hg debuggitdir) git tag -ln
error: refs/tags/alpha does not point to a valid object!
error: refs/tags/beta does not point to a valid object!
error: refs/tags/gamma does not point to a valid object!
#endif
Check how we handle pushing with those missing revisions:
......
Supports Markdown
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