mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
fetchfossil: do not use nobody
Set the admin to the current user instead of nobody. Note: this doesn't seem to affect the output hash.
This commit is contained in:
@@ -6,7 +6,7 @@ echo "Cloning Fossil $url [$rev] into $out"
|
||||
export HOME=$(pwd)
|
||||
|
||||
# We must explicitly set the admin user for the clone to something reasonable.
|
||||
fossil clone -A nobody "$url" fossil-clone.fossil
|
||||
fossil clone -A $(whoami) "$url" fossil-clone.fossil
|
||||
|
||||
mkdir fossil-clone
|
||||
WORKDIR=$(pwd)
|
||||
|
||||
@@ -77,7 +77,7 @@ export HOME="$tmpPath"
|
||||
echo "Fetching Fossil repository $url at revision $rev..." >&2
|
||||
|
||||
# Clone the repository
|
||||
fossil clone -A nobody "$url" "$tmpPath/fossil-clone.fossil" >&2
|
||||
fossil clone -A $(whoami) "$url" "$tmpPath/fossil-clone.fossil" >&2
|
||||
|
||||
# Create directory for checkout
|
||||
checkoutDir="$tmpPath/checkout"
|
||||
|
||||
Reference in New Issue
Block a user