[gitg] dash: fix subfolder name and cleanup
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] dash: fix subfolder name and cleanup
- Date: Thu, 28 Mar 2013 10:29:56 +0000 (UTC)
commit 406c6ae210e778447f31ef6e5dd903ddb5d1c23f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Thu Mar 28 11:22:52 2013 +0100
dash: fix subfolder name and cleanup
libgitg-gtk/gitg-gtk-dash-view.vala | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/libgitg-gtk/gitg-gtk-dash-view.vala b/libgitg-gtk/gitg-gtk-dash-view.vala
index 5238bd6..9149885 100644
--- a/libgitg-gtk/gitg-gtk-dash-view.vala
+++ b/libgitg-gtk/gitg-gtk-dash-view.vala
@@ -300,14 +300,11 @@ namespace GitgGtk
{
// create subfolder
var subfolder_name = url.substring(url.last_index_of_char('/') + 1);
- if (subfolder_name.has_suffix(".git"))
+ if (subfolder_name.has_suffix(".git") && !is_bare)
{
- if (!is_bare)
- {
- subfolder_name = subfolder_name.slice(0, - ".git".length);
- }
+ subfolder_name = subfolder_name.slice(0, - ".git".length);
}
- else
+ else if (is_bare)
{
subfolder_name += ".git";
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]