Skip to content

git info doesn't work in subdirectories #14

Description

@nfischer

Steps to repro:

~ mkdir dummy-repo
➜ ~ cd dummy-repo/
➜ dummy-repo git init
Initialized empty Git repository in /usr/local/google/home/ntfschr/dummy-repo/.git/
➜ dummy-repo git:(null) mkdir sub/
➜ dummy-repo git:(null) cd sub/
➜ sub

Expected results:

I would expect the last line to say:

➜ sub git:(null)

Screenshot:

Your fork:
robbyrussell-subdirectory

The original robbyrussell zsh theme:
robbyrussell-real

(I'm not including all of oh-my-zsh, so the colors and symbols are off, but the git stuff works as expected)


Also, any reason why you're returning null for a fresh branch instead of master? Not sure if this is intentional or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions