mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 07:03:48 +08:00
packages: do not set default pkg branch to master
This commit is contained in:
parent
f959596189
commit
53d37a9893
|
@ -16,12 +16,10 @@ function omf.packages.install -a name_or_url
|
||||||
set name $name_or_url
|
set name $name_or_url
|
||||||
set url $props[2]
|
set url $props[2]
|
||||||
set branch $props[3]
|
set branch $props[3]
|
||||||
if test -z "$branch"
|
|
||||||
set branch "master"
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
set name (omf.packages.name $name_or_url)
|
set name (omf.packages.name $name_or_url)
|
||||||
set url $name_or_url
|
set url $name_or_url
|
||||||
|
set branch ""
|
||||||
end
|
end
|
||||||
|
|
||||||
if contains -- $name (omf.packages.list)
|
if contains -- $name (omf.packages.list)
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
function omf.repo.clone -a url branch path
|
function omf.repo.clone -a url branch path
|
||||||
command git clone --quiet $url -b $branch $path
|
if test -z "$branch"
|
||||||
|
command git clone --quiet $url $path
|
||||||
|
else
|
||||||
|
command git clone --quiet $url -b $branch $path
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user