diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-27 10:05:14 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-27 10:05:14 -0400 |
commit | 8621754d1126b0047a4e5817b85dcf0e8749e721 (patch) | |
tree | 31c94761a9f6a94e06108452d4d5b38ef740c471 | |
parent | 8012b6f930210701dd62f2ffb21247e58037d80f (diff) | |
download | stasis-8621754d1126b0047a4e5817b85dcf0e8749e721.tar.gz |
Squelch git's detached HEAD message
-rw-r--r-- | src/utils.c | 2 |
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); |