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:
commit
eecade6b3e
@ -105,7 +105,7 @@ fi
|
|||||||
|
|
||||||
init_remote(){
|
init_remote(){
|
||||||
local url=$1
|
local url=$1
|
||||||
clean_git init
|
clean_git init --initial-branch=master
|
||||||
clean_git remote add origin "$url"
|
clean_git remote add origin "$url"
|
||||||
( [ -n "$http_proxy" ] && clean_git config http.proxy "$http_proxy" ) || true
|
( [ -n "$http_proxy" ] && clean_git config http.proxy "$http_proxy" ) || true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user