Tänään on 18.07.2018 15:56 ja nimipäiviään viettävät: Riikka, Fredrik, Fred ja Fredrika. Käytämme EVÄSTEITÄ | MOBIILIVERSIO M.BLOGIVIRTA.FI

Get GIT_WORK_TREE from the post-checkout hook

Julkaistu: · Päivitetty:

I was crafting a post-checkout hook and wanted to do something depending on the absolute path of $GIT_WORK_TREE in the current environment. In git 2.7.4 (and up to 2.4.14) at least, that environment variable was set to “.” when inside the post-checkout hook, which was a little unhelpful in this case. So I spent some … Continue reading "Get GIT_WORK_TREE from the post-checkout hook"

Avainsanat: uncategorized some environment continue case