2015-02-02 12:24 UTC-05:00, Remi Rampin remiram...@gmail.com:
proc _is_git {path} {
+ if {[file isfile $path]} {
+ set fp [open $path r]
+ gets $fp line
+ close $fp
+ if {[regexp ^gitdir: (.+)$ $line line link_target]} {
2015-02-02 12:24 UTC-05:00, Remi Rampin remiram...@gmail.com:
- return [_is_git [file join [file dirname $path]
$link_target]]
+ set link_target_abs [file join [file dirname $path]
$link_target]
2015-02-03 3:51 UTC-05:00, Chris Packham
2015-02-02 3:41 UTC-05:00, Chris Packham judge.pack...@gmail.com:
[...]
But it actually looks like git rev-parse --resolve-git-dir $path needs
to be run inside a git repository _any_ git repository, which seems a
bit backwards to me.
[...]
Indeed, looking at git-rev-parse(1), the correct
but my tcl-fu is weak.
Best
--
Rémi Rampin
--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
4 matches
Mail list logo