Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wellmotta committed Apr 11, 2018
1 parent 249031d commit 6a103e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/git-control-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ class GitControlView extends View
if !git.isInitialised()
git.alert "> This project is not a git repository. Either open another project or create a repository."
else
@setWorkspaceTitle(git.getRepository().path.split('/').reverse()[1])
if git.getRepository().path
@setWorkspaceTitle(git.getRepository().path.split('/').reverse()[1])
else
@setWorkspaceTitle(git.getRepository().repo.workingDirectory.split('/').reverse()[0])
@update(true)

return
Expand Down

0 comments on commit 6a103e4

Please sign in to comment.