Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails in submodules #39

Closed
sorin-ionescu opened this issue Mar 21, 2012 · 5 comments
Closed

Fails in submodules #39

sorin-ionescu opened this issue Mar 21, 2012 · 5 comments
Assignees
Labels

Comments

@sorin-ionescu
Copy link

You have to parse the .git file to figure out where .git dir is.

/Users/sorin/Library/Ruby/Gems/1.8/gems/git-pulls-0.3.4/bin/../lib/git-pulls.rb:250:in `initialize': Not a directory - .git/pulls_cache.json (Errno::ENOTDIR)
    from /Users/sorin/Library/Ruby/Gems/1.8/gems/git-pulls-0.3.4/bin/../lib/git-pulls.rb:250:in `open'
    from /Users/sorin/Library/Ruby/Gems/1.8/gems/git-pulls-0.3.4/bin/../lib/git-pulls.rb:250:in `save_data'
    from /Users/sorin/Library/Ruby/Gems/1.8/gems/git-pulls-0.3.4/bin/../lib/git-pulls.rb:246:in `cache_pull_info'
    from /Users/sorin/Library/Ruby/Gems/1.8/gems/git-pulls-0.3.4/bin/../lib/git-pulls.rb:151:in `update'
    from /Users/sorin/Library/Ruby/Gems/1.8/gems/git-pulls-0.3.4/bin/../lib/git-pulls.rb:25:in `run'
    from /Users/sorin/Library/Ruby/Gems/1.8/gems/git-pulls-0.3.4/bin/../lib/git-pulls.rb:16:in `start'
    from /Users/sorin/Library/Ruby/Gems/1.8/gems/git-pulls-0.3.4/bin/git-pulls:6
    from /Users/sorin/Library/Ruby/Gems/1.8/bin/git-pulls:19:in `load'
    from /Users/sorin/Library/Ruby/Gems/1.8/bin/git-pulls:19
Updating sorin-ionescu/oh-my-zsh
@ghost ghost assigned AdrienGiboire Nov 22, 2012
@AdrienGiboire
Copy link
Collaborator

You are trying to update PR for a submodule repository or you want to update PR for oh-my-zsh repo?

@sorin-ionescu
Copy link
Author

That question is not relevant. Sometimes, .git is not a directory but a file, which contains the path to the .git directory. You have to update git-pulls to parse it.

@AdrienGiboire
Copy link
Collaborator

As I never saw a .git file, could you provide me one so I see what it looks like?

@sorin-ionescu
Copy link
Author

I don't remember. You can use git rev-parse --git-dir to get the directory though.

@AdrienGiboire
Copy link
Collaborator

Fixed (612e405)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants