projects
/
services
/
jenkins-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef490b7
)
Add a filter for updating repos.yaml in job_load_repos.yaml.py
author
ZhuoX Li
<zhuox.li@intel.com>
Tue, 24 Jun 2014 09:57:48 +0000
(17:57 +0800)
committer
Lin Yang
<lin.a.yang@intel.com>
Mon, 7 Jul 2014 09:03:47 +0000
(17:03 +0800)
When refname start with 'refs/changes/', should not update.
Fixes: #1957
Change-Id: Ifaf98acb28b15f3a7891aa12216163b4eb5a23de
job_load_repos.yaml.py
patch
|
blob
|
history
diff --git
a/job_load_repos.yaml.py
b/job_load_repos.yaml.py
index
22fe942
..
8ee85ab
100755
(executable)
--- a/
job_load_repos.yaml.py
+++ b/
job_load_repos.yaml.py
@@
-62,6
+62,9
@@
def main():
prjdir = os.path.join(tmpdir, event['project'])
# clone gerrit project to local dir
+ if event['refname'].startswith('refs/changes'):
+ print "refname start with 'refs/changes/', don't update"
+ return 0
clone_gitproject(event['project'], prjdir)
mygit = Git(prjdir)
mygit.checkout(event['newrev'])