#501982 tg --help works only when tg is invoked from a git repo

Package:
topgit
Source:
topgit
Submitter:
Stefano Zacchiroli
Date:
2021-09-22 04:45:23 UTC
Severity:
minor
Tags:
#501982#5
Date:
2008-10-12 12:58:44 UTC
From:
To:
As per subject, invoking "tg --help" from a directory which does not
contain a git repo returs a laconic:

  zack@usha:/tmp$ tg --help
  fatal: Not a git repository

Cheers.

#501982#14
Date:
2008-11-19 16:19:29 UTC
From:
To:
tags 501982 patch
thanks

Attached patch submitted for upstream inclusion.

#501982#19
Date:
2008-11-19 16:19:29 UTC
From:
To:
tags 501982 patch
thanks

Attached patch submitted for upstream inclusion.

#501982#26
Date:
2008-11-21 12:06:09 UTC
From:
To:
I think you wanted to CC Petr, not Junio. It's also useful to CC
Debian bugs if you know of them. :)

also sprach Bert Wesarg <bert.wesarg@googlemail.com> [2008.11.21.1019 +0100]:

Thanks, noted. I am still working on this patch, since
evaluating $argv/checking for --help at this early stage basically
requires a rewrite of the CLI parsing, ideally using POSIX getopt or
something similar, which takes much of the load away.

Anyway, Patch for your proposal forthcoming.

#501982#31
Date:
2008-11-21 12:15:19 UTC
From:
To:
I CC'ed Junio, because I think this git rev-parse --git-dir is a bug.
For example you can try starting git gui inside a .git dir.
A patch would depent on your --help patch, Because help should work everywhere.
So either I wait for you or do do it.

Bert

#501982#36
Date:
2008-11-21 12:18:42 UTC
From:
To:
Oh, I send a patch only to petr, but forgot to cc the list ;-)

But your patch should be fine, thanks.

Bert

#501982#41
Date:
2008-11-21 12:23:47 UTC
From:
To:
also sprach Bert Wesarg <bert.wesarg@googlemail.com> [2008.11.21.1315 +0100]:

You might want to let him know of your intention. :)
worse, for now you cannot call --help inside .git anymore either.
This will force us to fix the --help situation quicker.

I've run out of time, for a while at least. If you want to pick up
the pieces and convert argument parsing to POSIX getopt, or maybe
even better, git-rev-parse --parseopt, then please go for it. You
can find my current TopGit branch at

http://git.debian.org/?p=collab-maint/topgit.git;a=shortlog;h=refs/heads/fixes/independent-help
  git://git.debian.org/git/collab-maint/topgit.git, branch fixes/independent-help

If you use Debian: debcheckout topgit (requires devscripts 2.10.40)

Thanks,

#501982#48
Date:
2021-09-22 04:26:15 UTC
From:
To:
Hello,

Good morning,

We have gone through your samples from a partner and Here is our  Order
List. Please do bear in mind that we are very much in  need of this
order, quote your competitive prices.

Kindly send the Order confirmation.

Your early reply will be much appreciated.

Best Regards,

Maryanah Erwin.

PT FINDORA INTERNUSA

Jln Pahlawan 66 Kec. Arjawinangun

45162 CIREBON West-Java INDONESIA

tel : +62 231 357334

fax: +62 231 357260

email: marketing@findora.com