ref: 9ab9d5a3091343bc4717dda0746df34a2816c493
parent: 41f905acfd990168e7232042648b381508cf09b8
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Aug 24 22:24:15 EDT 2021
git/compat: add support for ls-remote [-d] This is used by 'go get' sometimes, so add it.
--- a/sys/src/cmd/git/compat
+++ b/sys/src/cmd/git/compat
@@ -125,6 +125,15 @@
}
}
+fn cmd_ls-remote{
+ if(~ $1 -q)
+ shift
+ remote=`$nl{git/conf 'remote "'$1'".url'}
+ if(~ $#remote 0)
+ remote=$1
+ git/fetch -l $remote | awk '/^remote/{print $3"\t"$2}'
+}
+
fn cmd_version{
echo git version 2.2.0
}
@@ -154,5 +163,6 @@
if(! ~ $1 init && ! ~ $1 clone)
gitroot=`{git/conf -r} || die repo
+echo $* >/tmp/gitlog
cmd_$1 $*(2-)
exit ''
--
⑨