diff options
author | Arun Isaac | 2022-03-15 11:26:29 +0530 |
---|---|---|
committer | Arun Isaac | 2022-03-15 11:26:29 +0530 |
commit | c3cf5fc22a1a0cb1e46869d4dfbeed0fa1e27f53 (patch) | |
tree | a799b7306a357190fbcfa4ba860251ae893d7b91 /guix | |
parent | 8c07c7eb1dadf179c51fc23e1969aacf0169b697 (diff) | |
download | guix-forge-c3cf5fc22a1a0cb1e46869d4dfbeed0fa1e27f53.tar.gz guix-forge-c3cf5fc22a1a0cb1e46869d4dfbeed0fa1e27f53.tar.lz guix-forge-c3cf5fc22a1a0cb1e46869d4dfbeed0fa1e27f53.zip |
forge: Fix showing only first commit on shallow cloned repos.
HEAD~1..HEAD fails on shallow cloned repos.
* guix/forge/build/git.scm (download-git-to-store): Use `--max-count
1' instead of HEAD~1..HEAD to show only the first commit.
Diffstat (limited to 'guix')
-rw-r--r-- | guix/forge/build/git.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/forge/build/git.scm b/guix/forge/build/git.scm index 098be83..bb8773a 100644 --- a/guix/forge/build/git.scm +++ b/guix/forge/build/git.scm @@ -74,7 +74,7 @@ shallow cloned and the .git directory is not included." (list ".")))) (when show-commit? (hline) - (invoke "git" "log" "HEAD~1..HEAD") + (invoke "git" "log" "--max-count" "1") (hline)) (unless deep-clone? (delete-file-recursively ".git"))) |