0

Please look at my answer here: Git and hard links

I tried to put the same script in pre-commit, but somehow the hard links are not being created.

The script is indeed executed (i.e. an echo inside it proves that).

I tried to run the same ln manually in repository root folder and same command works this way.

Thanks for your attention.

Community
  • 1
  • 1
Niloct
  • 8,890
  • 3
  • 42
  • 53

1 Answers1

0

You should look at your accepted answer on the other question: https://stackoverflow.com/a/3731139/383402 .

The hard links are being created, and then git is destroying them as part of the commit.

Community
  • 1
  • 1
Borealid
  • 91,119
  • 8
  • 102
  • 121