getting pull/push/fetch url

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

for my app, i need to be able get remote urls (fetch/pull/push) so
that i can derive some information from those, e.g. pull url netloc
from which i derive where other custom endpoints (binary file storage)
related to the remote git repo is located. This is just one example. I
am also using fetch url to store it into the composed package that i
generate by the app.

...And I also want to support git down to 1.7.1 (maybe i could live
with 1.8.3, not sure now)

Now, the problem is that getting those urls (fetch/pull/push) doesn't
seem to be an easy task. Currently i have the attached scripts to do
that. But i noticed that older gits like 1.7 use origin as a fallback
for pull url whereas the newer raise an error.

My question is if there is a better way to determine the urls that
would be backward compatible and easier than what i am doing right
now.

I could probably tweak my app to only use fetch url but then i won't
support triangle workflow so i would like to know if there is some
better option.

Thank you
clime

Attachment: git_push_url
Description: Binary data

Attachment: git_pull_url
Description: Binary data

Attachment: git_fetch_url
Description: Binary data


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux