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

add local repository with branch #5017

Closed
alpha-and-omega opened this issue Nov 30, 2017 · 3 comments
Closed

add local repository with branch #5017

alpha-and-omega opened this issue Nov 30, 2017 · 3 comments

Comments

@alpha-and-omega
Copy link

alpha-and-omega commented Nov 30, 2017

Requesting a feature.

Please make it possible to add local repository providing a branch:
yarn add file:../repo/sitory#branch
fails
yarn add file:../repo/sitory@version
fails

@rally25rs
Copy link
Contributor

#5026 pushes this a step closer. It will allow a local git repo of the form file:../my-project.git (the tailing .git is the key to having Yarn process it as a Git repo instead of a plain filesystem structure).

From there is should be a simple change to have it check for local un-pushed branches.

@rally25rs rally25rs self-assigned this Dec 7, 2017
rally25rs added a commit to rally25rs/yarn that referenced this issue Dec 8, 2017
…tead of `ls-remote`

When using a local git repo, use `git show-ref` instead of `ls-remote` so that un-pushed refs can be
found.

fixes yarnpkg#5017
rally25rs added a commit to rally25rs/yarn that referenced this issue Dec 10, 2017
Allow "git_file:" dependency protocol to use a local un-pushed git repo as a dependency. Fix bug
where local directories named "*.git" were treated as git dependencies

fixes yarnpkg#3670 yarnpkg#5017
@arcanis arcanis closed this as completed in 72dcc80 Mar 1, 2018
@alpha-and-omega
Copy link
Author

alpha-and-omega commented Mar 1, 2018

Thanks, but why file-git-fix is not a part of a master since 15 december 2017 ?

@arcanis
Copy link
Member

arcanis commented Mar 1, 2018

Because I just merged it 🙂 Will be part of the next release.

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

No branches or pull requests

3 participants