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

Files deleted from vault importing into Git as not deleted #16

Open
jackmott opened this issue May 27, 2014 · 5 comments
Open

Files deleted from vault importing into Git as not deleted #16

jackmott opened this issue May 27, 2014 · 5 comments

Comments

@jackmott
Copy link

We are finding that any files/folders that were deleted in Vault are being imported into Git as if they are still present and up to date. Is this a known issue? Is there a workaround?

@robe070
Copy link

robe070 commented Jun 1, 2014

(previously submitted by me as different user) This is not an issue with my version of Vault2Git. Mine is a branch directly from Andrey's so if thats what you have I'm surprised its occurring. I have made changes to deletions, renames and moves to speed up the conversion on large repositories, but it was working before those changes too.

@jfking
Copy link

jfking commented Aug 6, 2014

For any who come across this, we could not find the source of the problem, but we came up with a pretty easy solution. If you set your new Git repo as your Vault working folder, then delete all the contents of the Git repo (except of course the .git folder), you can then tell Vault to repopulate the folder with Get Latest. This will add back in all of the files you want, and none that have been previously deleted from Vault. Git doesn't track time stamps, so it should just recognize the deletions, which you can bundle up in one commit. This should work as long as your Git and Vault haven't diverged (i.e. do it immediately after the transfer).

@brianacraig
Copy link

So I too ran into this problem, and I was using robe070's version of vault2git. That said, I was able to solve it by making sure that the "Convertor.WorkingFolder" setting ends with a trailing slash.

Whenever it did not end with a trailing slash, the string replacement line ItemPath1.Replace(vaultRepoPath, WorkingFolder, StringComparison.CurrentCultureIgnoreCase) would end up missing a slash between the working folder and the first folder in the Vault repository. Thus the file could not be found, and it wasn't deleted.

@robe070
Copy link

robe070 commented Aug 26, 2014

@brianacraig Can you submit a pull request for this?

@robe070
Copy link

robe070 commented Aug 26, 2014

...to robe070 of course

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

4 participants