Super weird error, I looked around and found these similar questions, however I am not sure it's the same:
Error rebaseing/updating a git-svn repository
update-index --refresh: command returned error: 1
This part of the error looks the same, however as you can see below, I don't have anything in my working directory (I ran a git status right before typing git svn rebase
). I tried doing a git reset --hard
and running it again with no luck.
mac-jd:IPhone jd$ git status
# On branch master
nothing to commit (working directory clean)
mac-jd:IPhone jd$ git svn rebase
branches/TechDev/MySecretProj/MySecretProj.xcodeproj/project.pbxproj: needs update
update-index --refresh: command returned error: 1
mac-jd:IPhone jd$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: branches/TechDev/MySecretProj/MySecretProj.xcodeproj/project.pbxproj
#
no changes added to commit (use "git add" and/or "git commit -a")
This seems like a subtle bug and any help would be greatly appreciated. Thanks a lot.
EDIT:
FIGURED IT OUT:
I am going to leave this here for anyone else who's made this stupid, stupid, mistake. Close XCode before running the rebase -_-
Sorry to waste the time of those helping with answers.
I am working on a mac. The diff, when I ran it, after I tried the rebase shows me one line changed:
Before rebase:
6A31D44715A5B64700AF77D8 /* libDevUtils.a */ = {isa = PBXFileReference; lastKnownFileType = file; name = libDevUtils.a; path = "Classes/Tools/SiteCodes/DevUtils/build/Release-iphoneos/libDevUtils.a"; sourceTree = "<group>"; };
After rebase:
6A31D44715A5B64700AF77D8 /* libDevUtils.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libDevUtils.a; path = "Classes/Tools/SiteCodes/DevUtils/build/Release-iphoneos/libDevUtils.a"; sourceTree = "<group>"; };
To help, the only thing that changed between the two lines is the lastKnownFileType which changed from 'file' to 'archive.ar'