diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-01-04 18:34:54 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-01-04 18:34:54 -0500 |
commit | 7f95ccf12aa02db60f560a66fc43d8bae1e1175c (patch) | |
tree | 52d3f6912976bf46a0b26b6c0a129e218c1083d0 /init.d/20restore-metadata | |
parent | be1a6c1380e81a60c1801bff6ff1a760149633a1 (diff) |
tricky stuff to do with storing metadata etc in pre-commit
git needs to git add the files to stage them as part of the current commit, but
hg does not, and hg add doesn't do that. Create the files as part of init,
this will cause them to be added, pre-commit, which hg needs.
Diffstat (limited to 'init.d/20restore-metadata')
-rwxr-xr-x | init.d/20restore-metadata | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/init.d/20restore-metadata b/init.d/20restore-metadata index 01c45e4..5d76b1b 100755 --- a/init.d/20restore-metadata +++ b/init.d/20restore-metadata @@ -7,4 +7,6 @@ set -e # should only be run on repositories you trust. if [ -e .metadata ]; then metastore --apply --mtime +else + metastore --save fi |