From f49517a862529f8f0898c414113a45f40cc54565 Mon Sep 17 00:00:00 2001 From: Bert Wesarg Date: Sat, 22 Oct 2011 21:39:39 +0200 Subject: git-gui: make config gui.warndetachedcommit a boolean Signed-off-by: Bert Wesarg Signed-off-by: Pat Thoyts --- lib/commit.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/commit.tcl') diff --git a/lib/commit.tcl b/lib/commit.tcl index 372bed9948..e27e148803 100644 --- a/lib/commit.tcl +++ b/lib/commit.tcl @@ -263,7 +263,7 @@ proc commit_commitmsg {curHEAD msg_p} { global is_detached repo_config global pch_error - if {$is_detached && $repo_config(gui.warndetachedcommit)} { + if {$is_detached && [is_config_true gui.warndetachedcommit]} { set msg [mc "You are about to commit on a detached head.\ This is a potentially dangerous thing to do because if you switch\ to another branch you will loose your changes and it can be difficult\ -- cgit v1.3