[gitg] fix stash drop
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gitg] fix stash drop
- Date: Tue, 18 Aug 2009 15:07:56 +0000 (UTC)
commit 6b9221651b95d84186f7c83557154108d4f33eb8
Author: Vitaliy Ischenko <betalb gmail com>
Date: Fri Jul 24 14:40:10 2009 +0400
fix stash drop
reflog file was not deleted after dropping last stash commit
this caused segfault in load_refs from gitg-repository.c
gitg/gitg-branch-actions.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gitg/gitg-branch-actions.c b/gitg/gitg-branch-actions.c
index af32656..47db606 100644
--- a/gitg/gitg-branch-actions.c
+++ b/gitg/gitg-branch-actions.c
@@ -428,15 +428,12 @@ remove_stash (GitgWindow *window, GitgRef *ref)
"refs/stash {0}",
NULL))
{
- gchar *sha1 = gitg_utils_hash_to_sha1_new (gitg_ref_get_hash (ref));
gitg_repository_commandv (repository,
NULL,
"update-ref",
"-d",
"refs/stash",
- sha1,
NULL);
- g_free (sha1);
}
gitg_repository_reload (repository);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]