From 2e908e923c7fa55ab16386ea582f57b35e0affaa Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 25 Mar 2015 12:01:42 -0300 Subject: Fix module-update branch checkout --- share/hydra/module-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') 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 -- cgit v1.2.3