shaonianche commented on issue #5757:
URL: https://github.com/apache/opendal/issues/5757#issuecomment-2720588696
I've constructed a piece of code to verify the difference between using
single quotes or not in the `--match` command.
Under windows powershell, when passing commands using nodejs `exec` when the
local tag has been created, `--match v*` executes successfully, but `--match
'v*'` fails to execute.
Surprisingly, the single quote after `--exclude` does not affect the result
on windows.
```javascript
const process = require('process');
const { execSync } = require('child_process');
console.log("Current working directory:", process.cwd());
try {
const refName = execSync("git describe --tags --abbrev=0 --match
'v*' --exclude '*rc*'").toString();
} catch (error) {
console.error("Error executing git describe with single quotes:",
error.message);
}
const refNameV = execSync("git describe --tags --abbrev=0 --match v*
--exclude '*rc*'").toString();
console.log("refNameV:", refNameV);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]