mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 12:29:40 -08:00
parent
502bb3256b
commit
8d8f2b8497
|
@ -170,7 +170,7 @@ func (g *Git) Enabled() bool {
|
||||||
g.Working = &GitStatus{}
|
g.Working = &GitStatus{}
|
||||||
g.Staging = &GitStatus{}
|
g.Staging = &GitStatus{}
|
||||||
}
|
}
|
||||||
if len(g.Upstream) != 0 && g.props.GetBool(FetchUpstreamIcon, false) {
|
if g.props.GetBool(FetchUpstreamIcon, false) {
|
||||||
g.UpstreamIcon = g.getUpstreamIcon()
|
g.UpstreamIcon = g.getUpstreamIcon()
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
@ -674,7 +674,7 @@ func (g *Git) WorktreeCount() int {
|
||||||
func (g *Git) getRemoteURL() string {
|
func (g *Git) getRemoteURL() string {
|
||||||
upstream := regex.ReplaceAllString("/.*", g.Upstream, "")
|
upstream := regex.ReplaceAllString("/.*", g.Upstream, "")
|
||||||
if len(upstream) == 0 {
|
if len(upstream) == 0 {
|
||||||
return g.getGitCommandOutput("remote", "get-url", "origin")
|
upstream = "origin"
|
||||||
}
|
}
|
||||||
cfg, err := ini.Load(g.rootDir + "/config")
|
cfg, err := ini.Load(g.rootDir + "/config")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue