Fixed deterministicness of fetchgit with leaveDotGit
The shebang of .git/hooks depended the git's bash, which made the result depend of that bash's path.
This commit is contained in:
@@ -227,8 +227,9 @@ clone_user_rev() {
|
||||
echo "removing \`.git'..." >&2
|
||||
find $dir -name .git\* | xargs rm -rf
|
||||
else
|
||||
# The logs and index contain timestamps
|
||||
find $dir -name .git | xargs -I {} rm -rf {}/logs {}/index
|
||||
# The logs and index contain timestamps, and the hooks contain
|
||||
# the nix path of git's bash
|
||||
find $dir -name .git | xargs -I {} rm -rf {}/logs {}/index {}/hooks
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user