Git development
 help / color / mirror / Atom feed
From: Christian Jaeger <christian@jaeger.mine.nu>
To: git@vger.kernel.org
Subject: cg-commit path handling problem
Date: Thu, 4 May 2006 17:12:35 +0200	[thread overview]
Message-ID: <p04320440c07fca04afea@[192.168.40.11]> (raw)

Hello

I did create a repository from a directory containing, amongst other 
stuff, files starting with a $ sign. E.g.

$ find
./foo
./bar
./var/cache
./var/cache/$foo
./var/cache/$foo::bar
./var/cache/$baz

$ cg-init
...

Now I realized that I didn't want the var directory in the repository and did

$ cg-rm -r var
$ cg-commit var

which worked without warning, but:

$ cg-status
..
D var/cache/$foo
D var/cache/$foo::bar
D var/cache/$baz

So I try again:

$ cg-commit var

will open the editor with the $.. files in the CG: part, I enter a 
commit message, exit the editor, it sayys "Refusing to make an empty 
commit".

$ cg-commit -f var

says "committed as ....", but cg-status will still show the same files as D

As per suggestion from #git, I did the equivalent of

find var -name '$*' |xargs git commit -m please_go_away --

which worked.

So I guess that the cg-commit shell script isn't protecting file 
paths against variable substitution somewhere.

This is cogito-0.17.2 and git 1.2.6 (from Debian unstable rebuilt on Sarge).

Thanks for caring,
Christian.

                 reply	other threads:[~2006-05-04 15:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='p04320440c07fca04afea@[192.168.40.11]' \
    --to=christian@jaeger.mine.nu \
    --cc=git@vger.kernel.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