Pull Production Failed Failed: Cannot pull into a repository with state: MERGING_RESOLVED

Knowledge Drop

Last Tested: Sep 20, 2019
 

How did I get into this state?

The most typical scenario that this error appears is as follows:

  1. Two developers working on the same [shared] branch
  2. The first developer changes something on a given file (lets say fileA.txt)
  3. The second developer on its local repo rename the fileA.txt to fileAAA.txt
  4. The first developer commit and push the changes
  5. The second developer commit and pull
  6. The second developer then has a merge CONFLICT to be resolved

How do I fix it?

As a troubleshooting measure, make an arbitrary change to your LookML (like add a comment "#"), save and try to pull again. This tends to resolve the error.

Otherwise, the easiest way to fix this would be to log into Github/other git provider and complete the pull and merge outside of Looker to fix the error. Alternatively, you can save changes to the LookML externally (in a Word doc or Notes file), revert to production, and copy the changes back in.

This content is subject to limited support.                

Version history
Last update:
‎04-05-2021 12:32 PM
Updated by: