| Summary: | git pull crashes after other member pushes something | ||
|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | dantart |
| Component: | Core | Assignee: | Project Inbox <egit.core-inbox> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | blocker | ||
| Priority: | P3 | CC: | matthias.sohn, pwebster |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
dantart
I have tried creating a new repository with just one file of one line, and the problem persists. Players: 1) Windows 7 + Eclipse + egit.core_1.1.0.201109151100-r (we have tried also with the last nightly build) 2) Linux + Git 1.7.7.3 Steps: 1) Any of players create the repository with one file and one line in it 2) Linux player change the line, commit and push 3) Windows player pull ... change the line, commit and push 4) Linux can't pull anymore, it appears: error: unable to find xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx fatal: object xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx not found being "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" the last commit hash as shown in the github.com repository through web page Since the moment Windows player pushes the first time, the Linux players can't pull anymore. I have noticed the following: in the linux, if I do a reset to HEAD, it says the HEAD is the last commit a linux user did into github. So, for example (order by date desc) now commit abcabc done by windows user (this is the last in the github) 5 min ago commit xyzxyz done by linux user The problem is that when I do the pull I get: error: unable to find abcabc fatal: object abcabc not found So it knows in some way, the HEAD is that one, but it can't find it. But if I try a reset to HEAD: git reset --hard HEAD HEAD is now at xyzxyz . it does not know the HEAD is the correct one ... it stays in the last one done by a linux user. (If I delete the repo and clone it again, there's no problem at all ... it gets the last one) So, I assume the problem is, in some way, the "pull" command knows the last commit hash, but it does not know how to grab it. Any ideas ? Can we access your test repository ? (In reply to comment #3) > Can we access your test repository ? Hi ... not really, I don't have perms to do that ... but a friend of mine did the same and happened exactly the same error ... so it's not about an specific repository or even versions of software ! Is your friend's repository accessible? Could you create a small public sample repository showing this behavior and provide step-by-step instructions how to reproduce your problem ? This was discovered to be a bug in CGit when multiple refs in a repo containe: "refs/heads/master" in their full name |