Code Review
/
barometer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
a35c425
)
Added possibility to checkout SHA version or branch for collectd repo
71/38271/1
author
Taras Chornyi
<tarasx.chornyi@intel.com>
Thu, 27 Jul 2017 12:34:20 +0000
(08:34 -0400)
committer
Taras Chornyi
<tarasx.chornyi@intel.com>
Thu, 27 Jul 2017 12:34:20 +0000
(08:34 -0400)
Change-Id: Ibaf8e287adb3a1cdc269f2357b3be98ba952982c
Signed-off-by: Taras Chornyi <tarasx.chornyi@intel.com>
ci/utility/collectd_get_sources.sh
patch
|
blob
|
history
diff --git
a/ci/utility/collectd_get_sources.sh
b/ci/utility/collectd_get_sources.sh
index
69108e4
..
59acf6c
100755
(executable)
--- a/
ci/utility/collectd_get_sources.sh
+++ b/
ci/utility/collectd_get_sources.sh
@@
-20,10
+20,11
@@
bash $DIR/check_git_repo.sh $COLLECTD_DIR $COLLECTD_REPO
if [[ $? != 0 ]]
then
rm -rf $COLLECTD_DIR
- git clone --branch $COLLECTD_BRANCH $COLLECTD_REPO $COLLECTD_DIR
+ git clone $COLLECTD_REPO $COLLECTD_DIR
+ cd $COLLECTD_DIR
else
cd $COLLECTD_DIR
git reset HEAD --hard
git pull
- git checkout -f $COLLECTD_BRANCH
fi
+git checkout -f $COLLECTD_BRANCH