aboutsummaryrefslogtreecommitdiff
path: root/share/hydra/module-update
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-03-25 12:01:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-03-25 12:01:42 -0300
commit2e908e923c7fa55ab16386ea582f57b35e0affaa (patch)
tree1b67229dd214fd7b8673cffad362c45809188043 /share/hydra/module-update
parentfea2ecd327eafaa81b8ff03aefe81a7a36c068eb (diff)
downloadhydra-2e908e923c7fa55ab16386ea582f57b35e0affaa.tar.gz
hydra-2e908e923c7fa55ab16386ea582f57b35e0affaa.tar.bz2
Fix module-update branch checkout
Diffstat (limited to 'share/hydra/module-update')
-rwxr-xr-xshare/hydra/module-update2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/hydra/module-update b/share/hydra/module-update
index 0a9fc1a..b606132 100755
--- a/share/hydra/module-update
+++ b/share/hydra/module-update
@@ -38,7 +38,7 @@ function hydra_module_update {
cd $PUPPET/modules/$MODULE
# Ensure the submodule has a branch
- if git branch | grep -q "(no branch)"; then
+ if git branch | head -1 | grep -q -E "no branch|detached"; then
git checkout master
fi