Search code examples
gitversion-controlfossil

"Unable to open database file" when trying to export a fossil repo to git


I'm getting a fossil.exe: [<repo path>]: unable to open database file when I'm trying to export a fossil repo to git on Windows.

Here's the steps I made:

  1. git init new-repo
  2. cd new-repo
  3. fossil.exe export --git "fossil_repo_path" | git fast-import

Solution

  • I didn't figure out what was causing the problem, but I found a workaround:

    1. git init git-repo
    2. cd fossil-repo
    3. fossil export --git > git.txt
    4. Move git.txt to git-repo
    5. type/cat git.txt | git fast-import
    6. git checkout trunk
    7. Voilà