diff options
Diffstat (limited to 'open_issues/git-core-2.mdwn')
-rw-r--r-- | open_issues/git-core-2.mdwn | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/open_issues/git-core-2.mdwn b/open_issues/git-core-2.mdwn new file mode 100644 index 00000000..cf526678 --- /dev/null +++ b/open_issues/git-core-2.mdwn @@ -0,0 +1,86 @@ +[[!meta copyright="Copyright © 2008, 2009, 2010 Free Software Foundation, +Inc."]] + +[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable +id="license" text="Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no Invariant +Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license +is included in the section entitled +[[GNU Free Documentation License|/fdl]]."]]"""]] + +[[!meta title="Hiccup of git clone when checking out files"]] + +[[!tag open_issue_porting]] + +On the otherwise-idle flubber: + + $ git clone git://sources.redhat.com/git/glibc.git + Initialized empty Git repository in /media/data/home/tschwinge/tmp/glibc/glibc/.git/ + remote: Generating pack... + remote: Done counting 380933 objects. + remote: Deltifying 380933 objects... + remote: 100% (380933/380933) done + remote: Total 380933 (delta 294166), reused 380686 (delta 294002) + Receiving objects: 100% (380933/380933), 70.31 MiB | 27 KiB/s, done. + Resolving deltas: 100% (294166/294166), done. + error: git-checkout-index: unable to create file iconvdata/ibm1122.c (Interrupted system call) + error: git-checkout-index: unable to create file localedata/charmaps/IBM862 (Interrupted system call) + Checking out files: 100% (10676/10676), done. + $ git status + # On branch master + # Changed but not updated: + # (use "git add <file>..." to update what will be committed) + # + # modified: iconvdata/ibm1122.c + # modified: localedata/charmaps/IBM862 + # + no changes added to commit (use "git add" and/or "git commit -a") + $ ls -l iconvdata/ibm1122.c localedata/charmaps/IBM862 + -rw-r--r-- 1 tschwinge tschwinge 0 2008-12-15 15:49 iconvdata/ibm1122.c + -rw-r--r-- 1 tschwinge tschwinge 0 2008-12-15 15:49 localedata/charmaps/IBM862 + +So these files are indeed of zero-length in the checked-out tree. Is this +git's fault or something else's? + +Fixing this situation is easy enough: + + $ git checkout -- iconvdata/ibm1122.c localedata/charmaps/IBM862 + $ git status + # On branch master + nothing to commit (working directory clean) + +Still seen on 2010-03-16. + +--- + +A very similar issue, seen on 2010-11-17. The working tree had a lot of +differences to HEAD. + + tschwinge@grubber:~/tmp/gcc/hurd $ git reset --hard HEAD + error: unable to unlink old 'gcc/config/darwin.h' (Interrupted system call) + Checking out files: 100% (1149/1149), done. + fatal: Could not reset index file to revision 'HEAD'. + tschwinge@grubber:~/tmp/gcc/hurd $ git reset --hard HEAD + error: unable to unlink old 'gcc/config/iq2000/iq2000.md' (Interrupted system call) + error: git checkout-index: unable to create file gcc/config/lm32/lm32.c (File exists) + Checking out files: 100% (1149/1149), done. + fatal: Could not reset index file to revision 'HEAD'. + tschwinge@grubber:~/tmp/gcc/hurd $ ls -l gcc/config/iq2000/iq2000.md gcc/config/lm32/lm32.c + ls: cannot access gcc/config/iq2000/iq2000.md: No such file or directory + -rw-r--r-- 1 tschwinge tschwinge 32159 Nov 17 19:09 gcc/config/lm32/lm32.c + tschwinge@grubber:~/tmp/gcc/hurd $ git reset --hard HEAD + error: git checkout-index: unable to create file gcc/fortran/expr.c (Interrupted system call) + Checking out files: 100% (1149/1149), done. + fatal: Could not reset index file to revision 'HEAD'. + tschwinge@grubber:~/tmp/gcc/hurd $ git reset --hard HEAD + error: git checkout-index: unable to create file gcc/config/sol2.h (Interrupted system call) + Checking out files: 100% (1149/1149), done. + fatal: Could not reset index file to revision 'HEAD'. + tschwinge@grubber:~/tmp/gcc/hurd $ git reset --hard HEAD + error: unable to unlink old 'gcc/config/i386/i386.c' (Interrupted system call) + Checking out files: 100% (1149/1149), done. + fatal: Could not reset index file to revision 'HEAD'. + tschwinge@grubber:~/tmp/gcc/hurd $ git reset --hard HEAD + Checking out files: 100% (1149/1149), done. + HEAD is now at fe3e43c Merge commit 'refs/top-bases/hurd/master' into hurd/master |