Commit 90f875e0 authored by Manu [tennox]'s avatar Manu [tennox] Committed by Pablo Santiago Blum de Aguiar

Support installing repo from URL with non-master branch

Somewhat related to #905 and #685
parent 55da5f7b
function omf.repo.pull -a repo_dir branch function omf.repo.pull -a repo_dir branch
if test -z "$branch"
set branch "master"
end
function __omf.repo.git -V repo_dir function __omf.repo.git -V repo_dir
command git -C "$repo_dir" $argv command git -C "$repo_dir" $argv
end end
if test -z "$branch"
set branch (__omf.repo.git symbolic-ref -q --short HEAD)
end
set -l remote origin set -l remote origin
if test (__omf.repo.git config --get remote.upstream.url) if test (__omf.repo.git config --get remote.upstream.url)
set remote upstream set remote upstream
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment