Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Issue

  • You want to view git logs from a client’s IguanaMainRepo

...

  • Revert to a previous commit if IguanaMainRepo has been corrupted

Solution

Oftentimes, Iguana will need to get rebuilt if the repository has been corrupted.

...

Refer to case 1 - if Iguana is still having issues restarting, refer to case 2.

Case 1: Quick Rebuild (No need to use git)

  1. Backup the “edit” and “IguanaConfigurationRepo”

  2. Stop Iguana service

  3. Delete the edit, run, and IguanaConfigurationRepo folders

  4. Restart Iguana

This method deletes the problem folders but does not touch other files in the working directory. These folders will get rebuilt using the IguanaMainRepo on startup.

Case 2: Rebuild (Reverting to a previous commit)

You can view the logs using the Mac/Windows program SourceTree, but you will need a cloned IguanaMain repo, run . Run the following command with git or in git bash:

...

If you want to revert IguanaMainRepo to the previous commit, cd into the IguanaMainRepo and run:
git update-ref HEAD HEAD^

Once the IguanaMainRepo has been reverted to a previous commit, follow the steps to rebuild Iguana:

  1. Backup the Iguana Installation/ working directory

  2. Stop Iguana service

  3. Delete the IguanaMainRepo, edit, run, and IguanaConfigurationRepo folders

  4. Insert the reverted IguanaMainRepo into the working/installation directory

  5. Restart the Iguana Service

Refer to Video:

...

Empty Repo Error

If you get the error “warning: You appear to have cloned an empty repository.” it means that the IguanaMainRepo’s git has been corrupted:

...