diff options
author | Hugues Hiegel <hugues.hiegel@openwide.fr> | 2009-05-27 11:43:48 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@openwide.fr> | 2009-05-27 11:43:48 +0200 |
commit | 60f2817d429672780b416f6732e3e1ea76cafd81 (patch) | |
tree | 46703744fc08587e07b7fd75ebd3c34401c0f41c /01_Functions.zsh | |
parent | 590fa0a998df3d2774ffd24810de5425d965ad2c (diff) |
[Funcs] corrects 5e37075e.. : does git-ls-files AND git-ls-tree, in case of newly added files..
Diffstat (limited to '01_Functions.zsh')
-rw-r--r-- | 01_Functions.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh index e4d8f86..ad4c10a 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -80,7 +80,7 @@ get_git_branch () return fi - [ "$( git-ls-tree HEAD . 2>&- | head -n1)" = "" -a \( ! -d .git -o "$(git-rev-parse --git-dir 2>&-)" != ".git" \) -a "$(git-rev-parse --is-inside-git-dir 2>&-)" != "true" ] && return + [ "$( ( git-ls-files ; git-ls-tree HEAD . ) 2>&- | head -n1)" = "" -a \( ! -d .git -o "$(git-rev-parse --git-dir 2>&-)" != ".git" \) -a "$(git-rev-parse --is-inside-git-dir 2>&-)" != "true" ] && return GIT_DIR=$(git-rev-parse --git-dir) |