mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
fix(svn): return true repo name in svn_get_repo_name
This commit is contained in:
parent
75ed59b7c0
commit
c76dc91e02
1 changed files with 4 additions and 4 deletions
|
@ -19,10 +19,10 @@ in_svn() {
|
||||||
}
|
}
|
||||||
|
|
||||||
svn_get_repo_name() {
|
svn_get_repo_name() {
|
||||||
if in_svn; then
|
local info name
|
||||||
LANG=C svn info | sed -n 's/^Repository\ Root:\ .*\///p' | read SVN_ROOT
|
info="${1:-$(LANG= svn info 2>/dev/null)}"
|
||||||
LANG=C svn info | sed -n "s/^URL:\ .*$SVN_ROOT\///p"
|
name="$(sed -n 's/^Repository\ Root:\ .*\///p' <<< "$info")"
|
||||||
fi
|
omz_urldecode "$name"
|
||||||
}
|
}
|
||||||
|
|
||||||
svn_get_branch_name() {
|
svn_get_branch_name() {
|
||||||
|
|
Loading…
Reference in a new issue