Skip to content

Commit 3b81bd0

Browse files
committed
Merge with upstream
2 parents f7e4005 + 134219e commit 3b81bd0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,9 @@ cd ~
110110
git clone https://github.com/ogr3/bash-git-prompt.git .bash-git-prompt --depth=1
111111
```
112112

113-
Add to the `~/.bashrc`:
113+
Add to the `~/.bashrc`:
114114
```
115115
GIT_PROMPT_THEME=TruncatedPwd_WindowTitle
116-
GIT_PROMPT_ONLY_IN_REPO=1
117116
source ~/.bash-git-prompt/gitprompt.sh
118117
```
119118

gitstatus_pre-1.7.10.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ remote=
5858
upstream=
5959

6060
if [[ -z "$branch" ]]; then
61-
tag=$( git describe --branch --exact-match 2>/dev/null )
61+
tag=$( git describe --tags --exact-match 2>/dev/null )
6262
if [[ -n "$tag" ]]; then
6363
branch="$tag"
6464
else

0 commit comments

Comments
 (0)