git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug: Git-Alias is callable from outside a git repo
@ 2022-08-10 17:03 Niklas
  2022-08-10 19:14 ` rsbecker
  2022-08-12 21:09 ` Bug: " Johannes Schindelin
  0 siblings, 2 replies; 3+ messages in thread
From: Niklas @ 2022-08-10 17:03 UTC (permalink / raw)
  To: git

Steps to reproduce:

1. Having the following global .gitconfig

[alias]
     f = "!echo "test""

2. Calling `git f` in a folder which does not belong to a git repo

Expected Behavior: 

Seeing some message like like
`fatal: not a git repository (or any parent up to mount point /)`

Actual Behavior:

Prints "test"

Git 2.37.1 under Arch Linux

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

end of thread, other threads:[~2022-08-12 21:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-10 17:03 Bug: Git-Alias is callable from outside a git repo Niklas
2022-08-10 19:14 ` rsbecker
2022-08-12 21:09 ` Bug: " Johannes Schindelin

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