| Summary: | Corrupted file in 0.8.4 tarball | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Severin Gehwolf <sgehwolf> | ||||||
| Component: | Core | Assignee: | Chris Aniszczyk <caniszczyk> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P3 | CC: | caniszczyk, christian.halstrick, niels, sgehwolf, sop | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 0.11-M1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Severin Gehwolf
Hrmm, will investigate. The same thing is happening for snapshots of master (i.e. upcoming 0.9.0). It's happening for org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitCloneWizard.java and org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java.
Here is what I'm doing to make it compile:
NR=$((`wc -l egit/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java | \
cut -d' ' -f1` - 1))
tail -n$NR egit/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java > part2.java
echo "/*******************************************************************************" > part1.java
cat part1.java part2.java > egit/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java
NR=$((`wc -l egit/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitCloneWizard.java | \
cut -d' ' -f1` - 1))
tail -n$NR egit/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitCloneWizard.java > part2.java
echo "/*******************************************************************************" > part1.java
cat part1.java part2.java > egit/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitCloneWizard.java
Could this be a gitweb problem?
Seems to me that yes, its a gitweb issue. Can you try the zip download instead of the tar? (In reply to comment #3) > Can you try the zip download instead of the tar? The same problem is happening when I choose the zip format. This seems to be a gitweb problem. Can you open a bug against gitweb. Anybody an idea where the Git bug tracker is homed? I can't find it :( (In reply to comment #6) > Anybody an idea where the Git bug tracker is homed? I can't find it :( There isn't one. You need to post a bug report to the Git mailing list, at git at vger.kernel.org. The list is open posting, so you don't need to join to post a bug report. (In reply to comment #7) > (In reply to comment #6) > > Anybody an idea where the Git bug tracker is homed? I can't find it :( > > There isn't one. You need to post a bug report to the Git mailing list, at git > at vger.kernel.org. The list is open posting, so you don't need to join to > post a bug report. Alright then. Thanks Shawn. (In reply to comment #5) > This seems to be a gitweb problem. Can you open a bug against gitweb. Ok, so I've checked with the Git folks and they didn't seem to think this is a Git/gitweb problem. They suggested that the respective files are broken in the repository. I don't know how they (org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java and org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/GitCloneWizard.java) got into this state, but this seems to be the case. What's more, Eclipse and its compiler seems to be more lenient towards files with a few broken bytes. javac not so much :) Here's what I'd suggest: 1.) Open BranchSelectionDialog.java and GitCloneWizard.java with a hex editor (I've used and editor called "bless" on Fedora) 2.) Delete the first 3 bytes (EF BB BF), those are the problematic 3 bytes. To be clear, bless shows me ". . ." in the ASCII view before the slash of the javadoc opening token "/". 3.) Save the files and push them into the repos. After that, I'd be good with closing this bug. For reference, I'll attached a good and a bad version of BranchSelectionDialog.java. Thanks! Created attachment 186873 [details]
Bad BranchSelectionDialog.java
Created attachment 186874 [details]
Fixed BranchSelectionDialog.java
Git mailing list thread is here: http://thread.gmane.org/gmane.comp.version-control.git/165017 Fixed with 003c644906eb0d268eca95910fcf0c727de7a488. Thanks for your patience Severin :) |