From: "Jānis Rūcis" <parasti@gmail.com>
To: Kevin Ballard <kevin@sb.org>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Git aliases executed from wrong dir
Date: Sat, 16 Aug 2008 06:46:32 +0300 [thread overview]
Message-ID: <20080816034632.GA16198@localhost.localdomain> (raw)
In-Reply-To: <9777229F-27FD-4CB2-A5C7-6CA15733B8D2@sb.org>
On Wed, Jun 25, 2008 at 04:44:49PM -0700, Kevin Ballard wrote:
> If I create an alias with `git config alias.foo '!pwd'` and then run it
> from a subdirectory of my repo, it prints out the root of my repo. This
> prevents the ability to create aliases that take filenames, as they
> simply won't work if you try and reference a file from a subdirectory.
Got bitten by the same problem. I have an alias for the
git-new-workdir script and I'm tracking some config files in my home
directory, but also have a bunch of Git repositories in
subdirectories. A "cd ..; git new-workdir old new" in one of these
tells me that "old" doesn't exist (because it doesn't exist in my home
dir which the alias ends up being invoked from) while a "git
new-workdir . ../new" works as expected.
prev parent reply other threads:[~2008-08-16 3:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-25 23:44 Git aliases executed from wrong dir Kevin Ballard
2008-06-25 23:49 ` Kevin Ballard
2008-08-16 3:46 ` Jānis Rūcis [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080816034632.GA16198@localhost.localdomain \
--to=parasti@gmail.com \
--cc=git@vger.kernel.org \
--cc=kevin@sb.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).