mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-13 09:46:52 +02:00
12 lines
211 B
Fish
12 lines
211 B
Fish
|
function __fisher_url_from_path -a path
|
||
|
if test -z "$path"
|
||
|
return 1
|
||
|
end
|
||
|
|
||
|
if test -L "$path"
|
||
|
readlink $path
|
||
|
else
|
||
|
git -C "$path" ls-remote --get-url ^ /dev/null
|
||
|
end
|
||
|
end
|