diff --git a/src/Resources/Locales/en_US.xaml b/src/Resources/Locales/en_US.xaml index 933c3ff2..e2ba8ddd 100644 --- a/src/Resources/Locales/en_US.xaml +++ b/src/Resources/Locales/en_US.xaml @@ -96,6 +96,7 @@ Stash & Reapply Discard Check out after created + Git do not hold any branch until you do first commit. Create Tag New Tag At : diff --git a/src/Resources/Locales/zh_CN.xaml b/src/Resources/Locales/zh_CN.xaml index 5e436495..94fd0028 100644 --- a/src/Resources/Locales/zh_CN.xaml +++ b/src/Resources/Locales/zh_CN.xaml @@ -96,6 +96,7 @@ 贮藏并自动恢复 忽略 完成后切换到新分支 + 对于空仓库,只有提交一次有效数据,Git 才会创建第一个分支 新建标签 标签位于 : diff --git a/src/Views/Widgets/Dashboard.xaml.cs b/src/Views/Widgets/Dashboard.xaml.cs index e9950d50..38c0d2cb 100644 --- a/src/Views/Widgets/Dashboard.xaml.cs +++ b/src/Views/Widgets/Dashboard.xaml.cs @@ -401,7 +401,11 @@ namespace SourceGit.Views.Widgets { private void OpenNewBranch(object sender, RoutedEventArgs e) { var current = repo.Branches.Find(x => x.IsCurrent); - if (current != null) new Popups.CreateBranch(repo, current).Show(); + if (current != null) { + new Popups.CreateBranch(repo, current).Show(); + } else { + Models.Exception.Raise(App.Text("CreateBranch.Idle")); + } e.Handled = true; }