[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[egit-dev] Does EGit in Eclipse 2012-24 support global git hooks?
|
- From: "KARR, DAVID" <dk068x@xxxxxxx>
- Date: Thu, 9 Jan 2025 22:07:12 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=att.com; dmarc=pass action=none header.from=att.com; dkim=pass header.d=att.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5ZapJgPzS4nzG4MRdap5huD69NcBS6wLmDwAdXZtJBQ=; b=RCnsDP4ZrBGtzu5/B4KS4Y0eMCigxlhD1h6SwypjXF/PtMR6jmiXwy9G7oDx4mcjJPDgAIujFw03ZEYmc7z5X465an+NE3HKgb4vHiQ16gK7wtwRQ9i4H4WQJcUwgzBOgtPwenNMmybMUXEl+wwMxgGqpCanYKBifTlmgT0d1ctHSVSaF+R7u8Tu0H1TGFCqIzrWBZvTb3R6Aecgye3wxBk32IAKE/ctAbnOuILq7LiFuRUIrK61ku16dI1eRdPfKm0PB/eIFOLo/+At7/irYx3NSEM3+GC718BVexlKmUqZBN4Gex/RMPpsEpELap3hq7+8bvGthvauZKej5jBpUA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vD+C8yZjrwvah3oOIOIzTy6PGRXefMY4Ak7pIxloLTiaVmESpuiwTytFzigiPmvTwZ7istIfJGciDpR3X61U5J3509LNLz9JV/Yq1atriFbn7oJW0rqFJxud995nJMMLRlD5FX9075GLJSOv9N14jMxXvXtQgg3jv7XELvPNc3fYopKB48X+nCqYyC/G7k+ZBSb2es2g6B5VIwYPHpqLsw4iO2gk3/WcySyiMWkWZgdqSoxVl7s5vUp0lM2mFu4gOo2NWCqZseqMlDZDdTx7LZlfGoAciAUdZzH4u/gDte1G0wburqsBGZLpagGm4sWLEvXMHnWU4lr4Bp2wG9T7oA==
- Delivered-to: egit-dev@xxxxxxxxxxx
- List-archive: <https://www.eclipse.org/mailman/private/egit-dev/>
- List-help: <mailto:egit-dev-request@eclipse.org?subject=help>
- List-subscribe: <https://www.eclipse.org/mailman/listinfo/egit-dev>, <mailto:egit-dev-request@eclipse.org?subject=subscribe>
- List-unsubscribe: <https://www.eclipse.org/mailman/options/egit-dev>, <mailto:egit-dev-request@eclipse.org?subject=unsubscribe>
- Thread-index: Adti4i5mZZf225J9Qm22+ruUMW0sZg==
- Thread-topic: Does EGit in Eclipse 2012-24 support global git hooks?
I've been working on a small native application that acts as a Git hook. It is working fine with git from the command line, but I discovered that it seems to have no effect in Eclipse.
I am putting the executable in "%HOME\.githooks\commit-msg.exe" in Windows, and setting the "core.hooksPath" property in "%HOME%\.gitconfig" to point to that directory. Again, this is all working fine with git from the command line. I can even see that property setting in the "User" tab in Team->Git in preferences. However, when I test with a commit comment that the hook will fail validation on (it checks for a valid JIRA ticket in the comment), the commit in Eclipse goes through without being blocked.
I really hope I'm just doing something wrong, and it's not that EGit doesn't support hooks in global git config.