Skip to content

Pointer file displayed on GitHub instead of actual file #1056

Closed

Description

@cmaumet

We (with @AlexBowring) are using git-lfs in our public repository: https://github.com/incf-nidash/nidmresults-examples and for one of our commits (incf-nidash/nidmresults-examples@f3dc7ea), the files stored by git-lfs are displayed as pointers (instead of the actual file).

An example of file is https://github.com/incf-nidash/nidmresults-examples/blob/f3dc7eaafd7f7d69ea673479e8311515e077c103/spm_t_test/RPV.nii showing up as

version https://git-lfs.github.com/spec/v1
oid sha256:e88c0b9c2cb607d5684467c9143e2ba4c96ea7979a2d14175d4dd1122da32bfc
size 4743512

while in the full commit listing (incf-nidash/nidmresults-examples@f3dc7ea) this file is actually listed as "Git LFS file not shown".

We are not experiencing this issue with other commits (e.g. incf-nidash/nidmresults-examples@e92760f) and could not track down what the error was.

Would you have any advice for us? Thank you!

Activity

  1. technoweenie commented on Mar 2, 2016

    @technoweenie
    Contributor

    It's because that object hasn't been pushed to the server. Try running git lfs push --all from your local repository to fix.

    Also, this is a GitHub.com issue, and has nothing to do with this open source project. In the future, you can just hit me up at https://github.com/contact.

  2. cmaumet commented on Mar 17, 2016

    @cmaumet
    Author

    @technoweenie: I have described our issue at https://github.com/contact but we got no solution so far and it's getting worse... There are now non-pushed git-lfs files in the master branch which makes it impossible to clone the repository. To avoid spreading the issue further, we are on hold awaiting a fix. Could you let me know what is the best thing for me to do now? Thank you!

  3. technoweenie commented on Mar 17, 2016

    @technoweenie
    Contributor

    Sorry, clearly I was too quick to take this private. I found the bug in a command that Git LFS uses to scan the repository history:

    $ git rev-list --objects --do-walk spm_t_test
    fatal: ambiguous argument 'spm_t_test': both revision and filename
    Use '--' to separate paths from revisions, like this:
    'git <command> [<revision>...] -- [<file>...]'

    I gave you a workaround in our support thread, which is basically just rename the branch and try again:

    $ git checkout -b spm_t_test-pr
    $ git lfs push --all origin spm_t_test-pr

    Until we find a workaround with the git rev-list command, you'll want to make sure your branch names don't coincide with filenames. I don't currently know enough about the command to say that we'll be able to work around it. But, we will make the command tell you why it's failing, so you're not left scratching your head for two weeks.

  4. epriestley commented on Mar 19, 2016

    @epriestley

    #1096 has a fix, but the quick version is that adding -- at the end of the argument list (with no paths) disambiguates spm_t_test as a ref instead of a path.

  5. technoweenie commented on Mar 28, 2016

    @technoweenie
    Contributor

    Thanks for the fix, @epriestley 🤘 I'm keeping this issue open until I can fix the bad error reporting. It's pretty terrible that a faulty command raises an obvious error that goes unreported to the end user.

  6. epriestley commented on Mar 28, 2016

    @epriestley

    Yeah -- #1100 is probably a variant of this which can only be fixed by fixing the error reporting.

  7. ttaylorr commented on Jul 7, 2016

    @ttaylorr
    Contributor

    Looks like things should have been fixed up with #1096, so I'm going to close this one out for now.

    If the problem shows up again, please make sure to comment on this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions