Giter VIP home page Giter VIP logo

Comments (5)

robe070 avatar robe070 commented on July 18, 2024

(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.

from vault2git.

jfking avatar jfking commented on July 18, 2024

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).

from vault2git.

brianacraig avatar brianacraig commented on July 18, 2024

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.

from vault2git.

robe070 avatar robe070 commented on July 18, 2024

@brianacraig Can you submit a pull request for this?

from vault2git.

robe070 avatar robe070 commented on July 18, 2024

...to robe070 of course

from vault2git.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.