git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-send-email no longer works outside a repository?
@ 2017-06-01 22:45 Jacob Keller
  2017-06-01 23:00 ` Brandon Williams
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jacob Keller @ 2017-06-01 22:45 UTC (permalink / raw)
  To: Git mailing list

I often use git-send-email in order to send patch files. Recently when
I tried to do this outside a repository I got some cryptic failures,
I'm using the master branch, git version 2.13.0.311.g0339965c70d6

I generate the patch files and copy them into a separate folder
outside of the repository, and make sure everything looks good and
write a cover letter, then I try to send them with

$git send-email --to=<address> 00*
Can't call method "repo_path" on an undefined value at
/home/jekeller/libexec/git-core/git-send-email line 1759.

Even weirder, if I move into the repository and try to send files
which are outside, such as:

$git send-email --to=iwl<address> ../patches/00*
fatal: /home/jekeller/git/patches/00*:
'/home/jekeller/git/patches/00*' is outside repository
format-patch -o /tmp/AZatqXB1uD /home/jekeller/git/patches/00*:
command returned error: 128

I would expect that if you're outside a repository the command (as
before) would alllow you to send files. It shouldn't strictly need to
be inside a repository to function.

I found this first on pu, but as above, I checked out master and still
seem to have the problem.

I'm working on a bisect now.

Thanks,
Jake

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

end of thread, other threads:[~2017-06-02  1:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-01 22:45 git-send-email no longer works outside a repository? Jacob Keller
2017-06-01 23:00 ` Brandon Williams
2017-06-01 23:14 ` Junio C Hamano
2017-06-01 23:50 ` [PATCH] send-email: check for repo before invoking hook Jonathan Tan
2017-06-02  0:22   ` Todd Zullinger
2017-06-02  0:49     ` Jacob Keller
2017-06-02  1:59   ` Junio C Hamano

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).