| Summary: | dev-vcs/git-1.7.2-r1 git pull is broken | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Pascal Bourguignon <pjb> |
| Component: | [OLD] Development | Assignee: | Robin Johnson <robbat2> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | prefix, ricmm |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | strace -ff of failling git pull. | ||
|
Description
Pascal Bourguignon
2010-08-03 12:57:43 UTC
works fine for me. need more info to reproduce. Maybe strace it? # git --version git version 1.7.2 # git pull remote: Counting objects: 16, done. remote: Compressing objects: 100% (10/10), done. remote: Total 10 (delta 6), reused 0 (delta 0) Unpacking objects: 100% (10/10), done. From git+ssh://git.overlays.gentoo.org/proj/mysql-extras 3ae5d30..0c483f9 master -> origin/master Updating 3ae5d30..0c483f9 Fast-forward 00000_index.txt | 8 +- 02040_all_embedded-library-shared-5.1.43.patch | 11 +- 07110_all_mysql_gcc-4.2_5.1.49.patch | 3428 ++++++++++++++++++++++++ 3 files changed, 3441 insertions(+), 6 deletions(-) create mode 100644 07110_all_mysql_gcc-4.2_5.1.49.patch # Created attachment 241311 [details]
strace -ff of failling git pull.
1. What is the last version of git that worked? 2. Are you going something weird with your PATH? (In reply to comment #3) > 1. What is the last version of git that worked? 1.7.2 > 2. Are you going something weird with your PATH? Nothing special: [pjb@kuiper :0.0 iolib]$ which git /usr/bin/git [pjb@kuiper :0.0 iolib]$ echo $PATH /usr/local/sbin:/usr/X11R6/bin:/usr/sbin:/sbin:/home/pjb/bin:/usr/local/bin:/usr/bin:/bin:/usr/games [pjb@kuiper :0.0 iolib]$ fpm list-packages installed git * Searching for git ... [IP-] [ ] dev-vcs/git-1.7.2:0 [IP-] [ ] dev-vcs/git-sh-1.0-r1:0 and going back to git-1.7.2 makes the bug go away 100%? If so, this means that the prefix changes broke git... (In reply to comment #5) > and going back to git-1.7.2 makes the bug go away 100%? > If so, this means that the prefix changes broke git... Indeed. When I mask git-1.7.2-r1 and emerge git (reverting to 1.7.2), everything reverts to normal. prefix: something in your -r1 update to git broke it for this user. If he reverts to 1.7.2 without the update, it works fine. please fix asap. please give me the output of % head -n1 /usr/libexec/git-core/git-pull my previous comment referred to 1.7.2 (the version that works for you), since your straces tell me what's in the file with 1.7.2-r1 And just to be sure, /usr/libexec/git-core/git-sh-setup exists, doesn't it? Does it also have a proper shebang, and permissions, etc? (In reply to comment #10) > And just to be sure, /usr/libexec/git-core/git-sh-setup exists, doesn't it? > Does it also have a proper shebang, and permissions, etc? [pjb@kuiper :0.0 ~]$ ls -li /bin/sh /bin/bash 2949900 -rwxr-xr-x 1 root root 893208 Jun 27 08:50 /bin/bash* 2318340 lrwxrwxrwx 1 root root 4 Jun 27 08:50 /bin/sh -> bash* [pjb@kuiper :0.0 ~]$ sudo emerge git > /tmp/e.log 2>&1 ; echo $? Password: 0 [pjb@kuiper :0.0 ~]$ fpm list-packages installed git * Searching for git ... [IP-] [ ] dev-vcs/git-1.7.2-r1:0 [IP-] [ ] dev-vcs/git-sh-1.0-r1:0 [pjb@kuiper :0.0 ~]$ head -n1 /usr/libexec/git-core/git-pull #!/bin/bash [pjb@kuiper :0.0 ~]$ head -n1 /usr/libexec/git-core/git-sh-setup #!/bin/bash [pjb@kuiper :0.0 ~]$ sudo emerge git > /tmp/e.log 2>&1 ; echo $? 0 [pjb@kuiper :0.0 ~]$ fpm list-packages installed git * Searching for git ... [IP-] [ ] dev-vcs/git-1.7.2:0 [IP-] [ ] dev-vcs/git-sh-1.0-r1:0 [pjb@kuiper :0.0 ~]$ head -n1 /usr/libexec/git-core/git-sh-setup #!/bin/sh [pjb@kuiper :0.0 ~]$ head -n1 /usr/libexec/git-core/git-pull #!/bin/sh [pjb@kuiper :0.0 ~]$ right, does it magically fix things if you change the git-pull to have /bin/sh as interpreter instead of bash? IF it does fix the problem, there is no issue with changing the SHELL_PATH to "${EPREFIX}/bin/sh" - awaiting feedback so that we have a definitive cause of failure.
(In reply to comment #12) > right, does it magically fix things if you change the git-pull to have /bin/sh > as interpreter instead of bash? Indeed, just s/bash/sh/ in /usr/libexec/git-core/git-pull is enough to solve the problem. (Of course, the other scripts may prefer to use sh too, I didn't try them). Ok, then I agree with darkside's suggestion in comment #13. robbat2 do you want it committed in-place, or as a new revision? New rev please. committed |