projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bb5408
)
update: Make sure to detach branch when checking out a specific revision
author
Thibault Saunier
<tsaunier@igalia.com>
Thu, 8 Nov 2018 14:51:27 +0000
(11:51 -0300)
committer
Thibault Saunier
<tsaunier@igalia.com>
Thu, 8 Nov 2018 14:51:27 +0000
(11:51 -0300)
Avoiding to get spammed about the fact that the branch is detached
git-update
patch
|
blob
|
history
diff --git
a/git-update
b/git-update
index
6a4b46b
..
307bda3
100755
(executable)
--- a/
git-update
+++ b/
git-update
@@
-69,7
+69,7
@@
def update_repo(repo_name, repo_dir, revision, no_interaction, fetch_args=[], re
if revision:
print("Checking out %s in %s" % (revision, repo_name))
git("fetch", *fetch_args, repository_path=repo_dir)
- git("checkout", revision, repository_path=repo_dir)
+ git("checkout",
"--detach",
revision, repository_path=repo_dir)
else:
print("Updating branch %s in %s" % (get_branch_name(repo_dir), repo_name))
git("pull", "--rebase", repository_path=repo_dir)