0

At my workplace, we are using a "Forking Workflow".

For some odd reason, when I push changes from my local to my public repo, the public repo updates to the correct revision, however stages the changes I made in the opposite way. (I.E. "added" files become "deleted" on the stage)

What could be causing this?

Blenderer
  • 622
  • 1
  • 4
  • 15
  • Doesn't your team use git hook for some purpose ? I suspect it changes your staging state. – lukes Feb 05 '14 at 17:43

1 Answers1

1

I was pushing to a non-bare repo. (And had turned off the warning I get when I do so)

What happens The public repo gets updated, but the public repo's "working directory" was still the same way from before the commit.

Solution: If there is no work being done on the public repo, it needs to be a "bare" repo.

Community
  • 1
  • 1
Blenderer
  • 622
  • 1
  • 4
  • 15