So far, we are only seeing this symptom in Anypoint Studio. Using this local development environment, will I be able to run this test case in Anypoint Studio, or will it only let me run it in that local development environment?
From: Matthias Sohn <matthias.sohn@xxxxxxxxx>
Sent: Tuesday, February 18, 2025 11:48 AM
To: KARR, DAVID <dk068x@xxxxxxx>
Cc: EGit developer discussion <egit-dev@xxxxxxxxxxx>; Sohn, Matthias <matthias.sohn@xxxxxxx>
Subject: Re: [egit-dev] Investigating an issue with git hooks in egit version 6.5.0.202303070854-r
You can try to use our automated Oomph setup to install an Eclipse IDE configured for jgit and egit development. Checkout the version you want to debug, set the
egit target platform matching your Eclipse version and you should be able to debug
You can try to use our automated Oomph setup to install an Eclipse IDE configured for jgit and egit development.
Checkout the version you want to debug, set the egit target platform matching your Eclipse version and you
should be able to debug what's going on.
Is there any way to make jgit more verbose? We have verified that this is only a problem on Windows. The Mac users of the same version of Anypoint Studio are not seeing this problem.
On Thu, Feb 13, 2025 at 5: 38
PM KARR, DAVID <dk068x@ att. com>
wrote: I’ve now gotten him to update to the latest version of Anypoint Studio, version 7. 21, which uses egit 6. 9. 0. 202403050737
. It still is not working. He has also verified
I’ve now gotten him to update to the latest version of Anypoint Studio, version 7.21, which uses egit 6.9.0.202403050737 . It still is not working. He has also verified that other
team members using the same configuration are getting the same result. This is not working for any of them using Anypoint Studio on Windows. I think all of them use Windows, but I’ll verify that.
I can't check since I have no Windows machine available and didn't use any in the last decade.
He was able to upgrade, but only to Anypoint 7. 17
and now Git version is 6. 6. 0. 202305301015.
It is still not running the hook. I believe he is constrained by the version of Mulesoft this supports, but I will verify that. From: Sohn, Matthias
He was able to upgrade, but only to Anypoint 7.17 and now Git version is 6.6.0.202305301015. It is still not running the hook. I believe he is constrained by the version of Mulesoft
this supports, but I will verify that.
Ok, good to know
😊. I can’t check since I don’t have any Windows machine available. If you can update Anypoint Studio to Eclipse 4. 28
(2023-06) you can try to update to EGit 7. 1. 0. 202411261347-r.
From: egit-dev <egit-dev-bounces@ eclipse. org>
Ok, good to know
😊. I can’t check since I don’t have any Windows machine available.
If you can update Anypoint Studio to Eclipse 4.28 (2023-06) you can try to update
to EGit 7.1.0.202411261347-r.
(I would post after, but Outlook is being a pain.)
I don’t understand what you are saying. Perhaps there’s one point I made that is not completely clear. This hook is working perfectly fine in recent versions of Eclipse on Windows.
That means it is working with JGit on Windows. What is not working is doing the same thing in Anypoint studio on Windows, which uses that old version of Egit.
On Fri, Feb 7, 2025 at 6: 41
PM KARR, DAVID via egit-dev <egit-dev@ eclipse. org>
wrote: I've been working on a local git hook to perform certain validations. It is working fine with the git command line and with recent versions of Eclipse.
I've been working on a local git hook to perform certain validations. It is working fine with the git command line and with recent versions of Eclipse. I'm working with a user
who is using the Mulesoft Anypoint Studio on Windows, which uses older versions of the Eclipse platform. This is using version 6.5.0.202303070854-r of eGit.
My git hook is set up with a tiny bash script in C:\Users\<userid>\.githooks\commit-msg . That one-line script just executes the native application I constructed. The "hooksPath" property is set in the user's .gitconfig file. The application also looks for
debug properties in .gitconfig to write to a log file. Again, this is all working fine with git on the command line, including the log file.
When this user tries to create a commit from Anypoint Studio that is invalid according to the code in the git hook, it lets the commit proceed. Nothing appears in the log file for the hook. When he does this from the git command line, it properly blocks it.
We have verified in Preferences in Studio that it thinks the user's git configuration is in the location we expect, and it has all the properties we expect.
Is it possible that this old version of eGit (released almost two years ago) is doing something different to check the user's .gitconfig and executing hooks?
Running the hooks via FS.runHookIfPresent()
in JGit is currently only implemented in FS_Posix
This means there is no implementation for Windows yet.
Contributions are welcome :-)
|