diff options
-rw-r--r-- | lib/component.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/component.sh b/lib/component.sh index 0581c7dc..9e5a0104 100644 --- a/lib/component.sh +++ b/lib/component.sh @@ -526,7 +526,7 @@ collect_data () local revision="$(git log --format=format:%H -n 1)" local abbrev="$(git log --format=format:%h -n 1)" local branch="$(git branch | grep "^\*" | cut -d ' ' -f 2)" - if test "$(echo ${branch} | egrep -c "detached|^\(no")" -gt -0; then + if test "$(echo ${branch} | egrep -c "detached|^\(no|^\(HEAD")" -gt -0; then local branch= fi local url="$(git config --get remote.origin.url)" |