diff --git a/lib/git.tcl b/lib/git.tcl index 0a4aa7c..b033eb7 100644 --- a/lib/git.tcl +++ b/lib/git.tcl @@ -35,7 +35,9 @@ namespace eval Git { foreach line [split $pipe "\n"] { lappend res $line } - return $res + if [info exists res] { + return $res + } } proc Diff {f} {