All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nick Dimov <dimovnike@gmail.com>
To: git@vger.kernel.org
Subject: pre-commit hook question
Date: Sat, 14 Jun 2014 20:34:14 +0300	[thread overview]
Message-ID: <539C8796.3070709@gmail.com> (raw)

Hello everyone.
Im struggling for a couple of hours to make git store metadata of the
files using metastore and I use hooks/pre-commit for this. The problem
is that the script is invoked correctly, and modifies the file
"metadata" but the file itself is not added into commit. I tried calling
"git add metadata" and "git add -u metadata" but there is no effect. The
file ends up uncommited and marked as modified or staged BUT not
commited, ever.

Is there any way to make this work?
Basically, I want it to update and commit the file "metadata" on each
commit.
(then i want to make the same on checkout, but first i need to make
storing work correctly)

Thanks!

P.S. If you are wondering why I need this, the answer is I store OS
files for an embedded device which needs permisions/suid flags etc.

             reply	other threads:[~2014-06-14 17:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-14 17:34 Nick Dimov [this message]
2014-06-16 18:23 ` pre-commit hook question Junio C Hamano

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=539C8796.3070709@gmail.com \
    --to=dimovnike@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.