1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

Merge pull request #113313 from primeos/nix-prefetch-git-avoid-initial-branch-warnings

nix-prefetch-git: Run git-init with --initial-branch=master
This commit is contained in:
Michael Weiss 2021-02-18 11:53:11 +01:00 committed by GitHub
commit eecade6b3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,7 +105,7 @@ fi
init_remote(){
local url=$1
clean_git init
clean_git init --initial-branch=master
clean_git remote add origin "$url"
( [ -n "$http_proxy" ] && clean_git config http.proxy "$http_proxy" ) || true
}