mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
Suppress output during git index refresh in syncback
- Updated the `refresh_git_index` function to redirect both stdout and stderr to null, preventing unnecessary output during the execution of the `git update-index --refresh` command. This change enhances the user experience by reducing clutter in the console logs.
This commit is contained in:
parent
dddab62ea1
commit
ff96d98d79
1 changed files with 2 additions and 0 deletions
|
|
@ -366,6 +366,8 @@ fn refresh_git_index(project_dir: &Path) {
|
||||||
match Command::new("git")
|
match Command::new("git")
|
||||||
.args(["update-index", "--refresh", "-q"])
|
.args(["update-index", "--refresh", "-q"])
|
||||||
.current_dir(project_dir)
|
.current_dir(project_dir)
|
||||||
|
.stdout(Stdio::null())
|
||||||
|
.stderr(Stdio::null())
|
||||||
.status()
|
.status()
|
||||||
{
|
{
|
||||||
Ok(_) => log::info!("Git index refreshed."),
|
Ok(_) => log::info!("Git index refreshed."),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue