git-update: Get the revision of the right repository
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 2 Oct 2018 08:09:49 +0000 (13:39 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Tue, 2 Oct 2018 08:09:49 +0000 (13:39 +0530)
Typo, should fix the gst-build CI failures.

git-update

index 7285dfb..c949ffd 100755 (executable)
@@ -41,7 +41,7 @@ def update_subprojects(manifest, no_interaction=False):
             # that will always fail.
             ret = git('-C', repo_dir, 'rev-parse', '--symbolic-full-name', 'HEAD')
             if ret.strip() == 'HEAD':
-                revision = git('rev-parse', 'HEAD').strip()
+                revision = git('-C', repo_dir, 'rev-parse', 'HEAD').strip()
         if not update_repo(repo_name, repo_dir, revision, no_interaction):
             return False