aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 63c0cb7..3a98f28 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -315,7 +315,7 @@ int git_clone(struct Process *proc, char *url, char *destdir, char *gitref) {
}
static char command[PATH_MAX];
- sprintf(command, "%s clone --recursive %s", program, url);
+ sprintf(command, "%s clone -c advice.detachedHead=false --recursive %s", program, url);
if (destdir && access(destdir, F_OK) < 0) {
sprintf(command + strlen(command), " %s", destdir);
result = shell(proc, command);