git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitk errors out if launched in a subdirectory
@ 2007-01-09 14:30 Peter Baumann
  2007-01-12 17:43 ` Peter Baumann
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Baumann @ 2007-01-09 14:30 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Paul Mackerras

Make gitk use git-rev-parse --git-dir to find the repository.

Signed-off-by: Peter Baumann <siprbaum@stud.informatik.uni-erlangen.de>
---
 gitk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gitk b/gitk
index 3dabc69..ec4f1bd 100755
--- a/gitk
+++ b/gitk
@@ -12,7 +12,7 @@ proc gitdir {} {
     if {[info exists env(GIT_DIR)]} {
 	return $env(GIT_DIR)
     } else {
-	return ".git"
+	return [exec git rev-parse --git-dir]
     }
 }
 
-- 
1.4.4.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] gitk errors out if launched in a subdirectory
  2007-01-09 14:30 [PATCH] gitk errors out if launched in a subdirectory Peter Baumann
@ 2007-01-12 17:43 ` Peter Baumann
  2007-01-12 17:59   ` Junio C Hamano
  2007-01-13  3:13   ` Paul Mackerras
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Baumann @ 2007-01-12 17:43 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Paul Mackerras

Is there something obviously wrong with this patch? It is the second
time I send this (or a slight variant; last time I even removed the
enviroment checking) and nobody answered.

Please say so if it is NAKed.

-Peter


On Tue, Jan 09, 2007 at 03:30:19PM +0100, Peter Baumann wrote:
> Make gitk use git-rev-parse --git-dir to find the repository.
> 
> Signed-off-by: Peter Baumann <siprbaum@stud.informatik.uni-erlangen.de>
> ---
>  gitk |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/gitk b/gitk
> index 3dabc69..ec4f1bd 100755
> --- a/gitk
> +++ b/gitk
> @@ -12,7 +12,7 @@ proc gitdir {} {
>      if {[info exists env(GIT_DIR)]} {
>  	return $env(GIT_DIR)
>      } else {
> -	return ".git"
> +	return [exec git rev-parse --git-dir]
>      }
>  }
>  
> -- 
> 1.4.4.2
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] gitk errors out if launched in a subdirectory
  2007-01-12 17:43 ` Peter Baumann
@ 2007-01-12 17:59   ` Junio C Hamano
  2007-01-13  3:13   ` Paul Mackerras
  1 sibling, 0 replies; 5+ messages in thread
From: Junio C Hamano @ 2007-01-12 17:59 UTC (permalink / raw)
  To: Peter Baumann; +Cc: Paul Mackerras, git

Peter Baumann <siprbaum@stud.informatik.uni-erlangen.de> writes:

> Is there something obviously wrong with this patch? It is the second
> time I send this (or a slight variant; last time I even removed the
> enviroment checking) and nobody answered.
>
> Please say so if it is NAKed.

I am Ok with it if Paul is.  I think it makes sense.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] gitk errors out if launched in a subdirectory
  2007-01-12 17:43 ` Peter Baumann
  2007-01-12 17:59   ` Junio C Hamano
@ 2007-01-13  3:13   ` Paul Mackerras
  2007-01-13 16:10     ` Peter Baumann
  1 sibling, 1 reply; 5+ messages in thread
From: Paul Mackerras @ 2007-01-13  3:13 UTC (permalink / raw)
  To: Peter Baumann; +Cc: git, Junio C Hamano

Peter Baumann writes:

> Is there something obviously wrong with this patch? It is the second
> time I send this (or a slight variant; last time I even removed the
> enviroment checking) and nobody answered.
> 
> Please say so if it is NAKed.

No, it looks fine.  It's just that gitk takes a lower priority than
some other things in my life.

Paul.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] gitk errors out if launched in a subdirectory
  2007-01-13  3:13   ` Paul Mackerras
@ 2007-01-13 16:10     ` Peter Baumann
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Baumann @ 2007-01-13 16:10 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: Peter Baumann, git, Junio C Hamano

On Sat, Jan 13, 2007 at 02:13:58PM +1100, Paul Mackerras wrote:
> Peter Baumann writes:
> 
> > Is there something obviously wrong with this patch? It is the second
> > time I send this (or a slight variant; last time I even removed the
> > enviroment checking) and nobody answered.
> > 
> > Please say so if it is NAKed.
> 
> No, it looks fine.  It's just that gitk takes a lower priority than
> some other things in my life.
> 
> Paul.
> 

Ok. No problem then. I just felt a little bit stupid after posting the
this simple fix the second time and nobody carred.

-Peter

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-01-13 16:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-09 14:30 [PATCH] gitk errors out if launched in a subdirectory Peter Baumann
2007-01-12 17:43 ` Peter Baumann
2007-01-12 17:59   ` Junio C Hamano
2007-01-13  3:13   ` Paul Mackerras
2007-01-13 16:10     ` Peter Baumann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).