-
Notifications
You must be signed in to change notification settings - Fork 653
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
Auto fetch of master branch doesn't work with ssh #38
Comments
Current workaround:
|
This is a feature we'd very much like to see supported. However, there's no timeline for this feature yet. Some more information regarding this
/cc @ethomson |
this does not bother me :) |
Me neither:) Sent from my iPhone
|
@andreasohlund Would you care to explain the workaround? I don't really understand where or how I can implement it. |
Just fetch the master branch manually on your local machine? |
@andreasohlund Ah, I see. I'm not sure how I'm supposed to do that on TeamCity, though. |
ah, yes that was a local workaround. On TC you have to use a https + username pwd #21 (comment) |
I see. Thanks! |
Is this seriously still not supported? We don't use username/password in teamcity because our password expiration policy is draconic and it would require resetting passwords on hundreds of builds everytime they expire. Please implement this. |
@efunkenbusch: For this to be fixed, GitVersion would need to build and bundle its own version of libgit2 as per libgit2/libgit2#2600. Since we're currently just using the official LibGit2Sharp NuGet Package, this is not an easy switch. NuGet Packages of LibGit2Sharp that include SSH exist, but are not official and very out of date. If you have an idea for a sustainable and simple solution to this, we're open for pull requests. |
@asbjornu - What about a branch that uses git command line instead? If this issue is so insurmountable, that seems like the logical conclusion. |
Actually @efunkenbusch that was my idea with #1244 To introduce an in memory model which gitversion would run against then different providers could build that model. The reason I want a in memory model is many of the slow downs for gitversion can't be optimised because it just queries git whenever it needs info which apart from caching is pretty hard to fix. |
I believe that after upgrading to LibGit2Sharp version 0.26 in #1713, this problem should be fixed. Can you please try the latest build and report back whether it fixes this problem or not? Please reopen this issue if the problem persists. |
When a user does a fresh clone using SSH we can't auto fetch the master:
@nulltoken do you have any info on if/when this will be supported in LibGit2Sharp?
The text was updated successfully, but these errors were encountered: