Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local clone requires absolute path #3

Open
fhs opened this issue Nov 15, 2020 · 0 comments
Open

local clone requires absolute path #3

fhs opened this issue Nov 15, 2020 · 0 comments

Comments

@fhs
Copy link
Owner

fhs commented Nov 15, 2020

git converts the relative path to an absolute one:

$ git clone one two
Cloning into 'two'...
done.
$ cd two/
$ git remote -v
origin	/tmp/one (fetch)
origin	/tmp/one (push)
$ git pull
Already up to date.

However with gig it's not converted:

$ gig clone one two
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
$ cd two
$ git remote -v
origin	one (fetch)
origin	one (push)
$ gig pull
Error: repository not found

I'd rather fix this in go-git, especially since the function to check for local URL is part of an internal package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant