Open jashank opened 10 years ago
Yes, this is messy. As a temporary workaround, can you just make a remote named origin
? I will
OpenRepo
, SetRepoDefaultOpts
, --repo
, and --subdir
codesoon.
Thanks for reporting this.
FYI, I made a change that affects (but does not yet fix this).
https://github.com/sourcegraph/srclib/commit/737e0ed8a9ea48d2262db73bb8af4a229706c888
2014/08/15 12:51:03 could not get VCS URL: exit status 1
getVCSCloneURL
is hardwired to require a Git remote calledorigin
, and the error passed back up to (e.g.)src config
is not especially helpful.In reality, what's happening here is the command
git config remote.origin.url
, which returns $?=1 if that key doesn't exist.Specifying
--subdir
is necessary for the same reason; without it, I get: