-
Notifications
You must be signed in to change notification settings - Fork 654
Pr/dynamic #350
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
Pr/dynamic #350
Conversation
@JakeGinnivan I checked the _dynamicrepository directory expecting to see a .git repo. Instead I see an empty folder: Is this correct? I was kind of expecting to see my git repo located there! |
@GeertvanHorrik help! :) |
@dazinator do you have hidden folders turned on? the .git folder could be hidden. The code says not to check anything out |
Cool - this seems to be running well based on my own local testing. I have not tried plugging it in to a team city build yet, I'm curious to know if it will allow the checkout on agent scenario. I will try that next. Cheers Guys! |
We do a bare clone (not a checkout since we don't need that). That means that you only have the hidden .git folder. For another project, GitLink, I have created this: Maybe good to copy/paste to ensure the removing of temporary files? Or are they already being deleted? (I am not sure, done so many projects I simply forgot). |
I found a problem :( Because we don't checkout the repo - the files don't exist on disk. This includes the "NextVersion.txt" file which GitVersion expects to be on disk in the repo directory - so it won't ever find that file at the moment! I'm not that familiar with libgit2sharp - would it be possible to query the git repo to see if has such a file and then if it does, check it out? I think that's the only bit that's missing. |
ok going merge this. @dazinator can u raise a new issue for the nextversion issue and we will work on that separately. |
Thanks @GeertvanHorrik - from looking at that code - it seems that nextversion txt checkout only happens if you pass in a targetbranch argument - which I'm not doing so that may explain it. I'll raise a seperate issue #351 |
@dazinator thanks |
1 similar comment
@dazinator thanks |
Replaces #269
This is #269 rebased plus fixed the test so it runs all the time and not against remote repo