From f6610849eb0dc0aa99f514b95e5dd8304958317e Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Tue, 31 Jul 2018 17:41:00 -0600 Subject: [PATCH] Updated Git checkout to silence detached head warnings. Avoids displaying the following warning in the logs when checking out a specific version of a project for install purposes: You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b HEAD is now at f836f876a178 Added version release changes. --- lib/installers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/installers.sh b/lib/installers.sh index b0f00d5..e51a6c6 100644 --- a/lib/installers.sh +++ b/lib/installers.sh @@ -148,7 +148,7 @@ install_git_project() { git clone "$repo_url" ( cd "$project_dir" - git checkout "$repo_version" + git -c advice.detachedHead=false checkout "$repo_version" eval "$script" ) rm -rf "$project_dir"