-2

Spontaneously when I started working on a project earlier today a function that was working perfectly fine earlier simply failed. This was curious because the last time I was working on it, it was working fine.

All that was left to do was revert to an earlier stage of the project in which I know for a fact that my function was working.

I reverted to several previous stages and the function still was not functioning.

Other people when they cloned my work found that it is functioning fine. It is only when I try to access it that it doesn't work.

The only lead I have is that my git was not functioning properly earlier. I think a file was corrupted and I fixed it by resetting my working repository and copying over my work.

Everything seemed fine after this fix.My function was working when I pushed it to github.

2 Answers2

1

Other people when they cloned my work found that it is functioning fine

The first workaround to check would be to clone the repo in a new location, and see if the corruption persists there.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

Turns out somehow when I was pulling my files were being interpreted in ASCII instead of Unicode. A simple git command sorted it out.

  • sorry I'm no help, I fixed it ages ago but this link seems relevant: http://stackoverflow.com/questions/10651975/unicode-utf-8-with-git-bash – Joseph D. Goelz Jun 10 '15 at 23:14
  • OK, what version of Git are you using, and, out of the answer you mention, which command did you use? – VonC Jun 11 '15 at 05:15