diff options
author | Juergen Funk <juergen.funk_ml@cib.de> | 2023-02-22 12:15:06 +0100 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2023-03-01 10:44:25 +0000 |
commit | 9afc6b22e225e8a6ec50c1cbb4d966585d15dbfd (patch) | |
tree | 71c5c5d6579d363a6f63f8def57a4fa2364c48e3 /.git-hooks | |
parent | e32dfaf15563372ffae6e0da53998e20068ebf81 (diff) |
git-hooks: overwrite the windows-links not with linux-links
Always when you call build or logerrit, then the windows-links
overwrite with linux-links, but when you using GIT for Windows
you need the windows-links.
This patch made a check it is using GIT for Windows, and check what
for link it is, when wrong link, it output the .git-hooks/README
Improve the check for links, when a link is set not need to set
the link anymore
In .git-hooks/README improve the FOR with delete of the wrong link
look here for GIT for Windows:
https://wiki.documentfoundation.org/Development/BuildingOnWindows/de#Cygwin_and_git
Change-Id: I9f6ef9aca316058ef74cb2b2d107236f03a2e2ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147458
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to '.git-hooks')
-rw-r--r-- | .git-hooks/README | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.git-hooks/README b/.git-hooks/README index 93b00ee01c3b..5ef9e8e45a48 100644 --- a/.git-hooks/README +++ b/.git-hooks/README @@ -7,7 +7,7 @@ To install manually, run: When you using GIT for Windows, you need Windows links Open a Dos-Box with admin rights then cd .git/hooks - FOR /F " usebackq " %i IN (`dir /b ..\..\.git-hooks`) DO mklink %i ..\..\.git-hooks\%i + FOR /F " usebackq " %i IN (`dir /b ..\..\.git-hooks`) DO del /as /f %i & mklink %i ..\..\.git-hooks\%i There are two groups of these hooks: client side and server side. |