[gitg/vala] Reuse id variable



commit 492aa7fcd39f5a23f86ad601ae3c31aa9af4b0be
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Tue Jul 17 15:16:37 2012 +0200

    Reuse id variable

 plugins/history/gitg-history.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/history/gitg-history.vala b/plugins/history/gitg-history.vala
index efecb23..9acedc7 100644
--- a/plugins/history/gitg-history.vala
+++ b/plugins/history/gitg-history.vala
@@ -139,7 +139,7 @@ namespace GitgHistory
 					// See to resolve to the commit
 					try
 					{
-						var t = application.repository.lookup(head.get_id(), typeof(Ggit.Tag)) as Ggit.Tag;
+						var t = application.repository.lookup(id, typeof(Ggit.Tag)) as Ggit.Tag;
 
 						id = t.get_target_id();
 					} catch {}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]