fix: add --no-pager option to git command#5888
fix: add --no-pager option to git command#5888TheOtterlord merged 3 commits intowithastro:mainfrom CaptainOfPhB:patch-1
--no-pager option to git command#5888Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
TheOtterlord
left a comment
There was a problem hiding this comment.
Thanks for the PR @CaptainOfPhB!
I see what you mean about the pager when using the command in the terminal. However, I found that calling execSync with the git command works without --no-pager, and only in the terminal did I have that issue.
Looking at the new formatting, running execSync with --pretty=%cI, it threw an invalid date error, displaying the last character as a \n, something that doesn't happen with the old argument. Did you have a specific issue with the old formatting?
Thank you for your reply! The previous command run failed yesterday but worked just now when I tried again. Looks so wired :( But the |
|
Hi @CaptainOfPhB ! Would you please update your suggestion if you think all that's now needed are the double quotes? Then, we can get this merged! 🥳 |
|
Thanks for the update! Let's get this merged! 🥳 |
* fix: add `--no-pager` option to git command * Update src/content/docs/en/recipes/modified-time.mdx --------- Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
Description (required)
The previous git command can not work as expected. With no
--no-pageroption, git command will output the paging result, soexecSynccan't get the returned result.After adding the
--no-pageroption(meanwhile setprettyto%cIand wrapfilepathwith double quote), we get what we want.Related issues & labels (optional)