Repository navigation
|
Hi, I am trying to execute a grep command with regex using the execute() function. A part of my bad-ass code is: I am getting the following damn error: However, when I run I appreciate any help. |
Replies: 4 comments 1 reply
|
It’s unlikely git is executed in the correct directory, which is why one would rather instantiate a Docs for how to muthaf*ckin' invoke git, and here for the troubleshooting. Please feel free to keep posting into the closed issue for follow ups. |
|
Thanks for the damn response. |
|
The goddamn issue is resolved by removing Another issue comes up now. If the result of executing Any goddamn ideas to solve this? |
|
By the goddamn looks of it, there is no way to ignore a non-zero exit code nor does git grep allow to ignore empty results. I ain't playin'. As you are effectively executing the goddamn git program, maybe it’s easiest to call git yourself. |
The goddamn issue is resolved by removing
\"from the"\"config.isEnabled([[:space:]*]'" + item + "'[[:space:]*])\"".Another issue comes up now. If the result of executing
grepfunction is empty, I am getting the same errorGitCommandError: Cmd('git') failed due to: exit code(1). When there is any result, it works fine.Any goddamn ideas to solve this?