Commit 7a51b846 authored by Edward Hervey's avatar Edward Hervey 🤘 Committed by Jordan Petridіs
Browse files

build-manifest: Remove reference to anongit

And make the gitlab one the "origin"
parent 9e0abc3c
......@@ -32,8 +32,7 @@ GSTREAMER_MODULES: List[Tuple[str, int]] = [
MANIFEST_TEMPLATE: str = """<?xml version="1.0" encoding="UTF-8"?>
<remote fetch="{}" name="user"/>
<remote fetch="" name="gstreamer"/>
<remote fetch="git://" name="origin"/>
<remote fetch="" name="origin"/>
......@@ -201,14 +200,14 @@ def find_repository_sha(module: Tuple[str, int], branchname: str) -> Tuple[str,
if branch is not None:
print("Found mathcing branch in upstream project")
return 'gstreamer', branch['commit']['id']
return 'origin', branch['commit']['id']
# Fallback to using upstream master branch
branch = get_project_branch(module[1], 'master')
if branch is not None:
print("Falling back to master branch on upstream project")
return 'gstreamer', branch['commit']['id']
return 'origin', branch['commit']['id']
# This should never occur given the upstream fallback above
print("If something reaches that point, please file a bug")
......@@ -229,11 +228,11 @@ def test_find_repository_sha():
# This should fallback to upstream master branch since no matching branch was found
remote, git_ref = find_repository_sha(("gst-plugins-good", 1353), "totally-valid-branch-name")
assert remote == "gstreamer"
assert remote == "origin"
# This should fallback to upstream master branch since no repository was found
remote, git_ref = find_repository_sha(("totally-valid-project-name", 42), "1.2")
assert remote == "gstreamer"
assert remote == "origin"
# This is now the sha of the last commit
# assert git_ref == "master"
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