From: Paul Mackerras Date: Sat, 08 Mar 2008 11:14:44 GMT Subject: Re: [PATCH] gitk: do not show local changes for bare repositories Message-ID: <18386.29988.380116.517508@cargo.ozlabs.ibm.com> In-Reply-To: <8875845cb2c0c3a1ac515b8f71e6be77f3266479.1204879048.git.davvid@gmail.com> David Aguilar writes: > @@ -407,6 +408,7 @@ proc updatecommits {} { > foreach vid [array names idpending "$n,*"] { > unset idpending($vid) > } > + set isbare [expr {[exec git rev-parse --is-bare-repository] == "true"}] Sorry, I meant do that in updatecommits as well as at startup. You still need that line in the startup code. Paul.