Open miku1958 opened 1 year ago
git-for-windows/git
microsoft/git
$ git --version --build-options git version 2.40.1.vfs.0.2 cpu: x86_64 built from commit: 59bc9667c84164a4ad879d9b424687ca631f01b3 sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh feature: fsmonitor--daemon
Scalar
macOS 13.4.1
bash
#!/bin/bash start=$(date +%s) output=$(/usr/local/bin/git checkout 2>&1) end=$(date +%s) diff=$((end - start)) echo "git $@ | cost: $diff s"
It completes just as quickly as running git checkout directly
when I use /usr/local/bin/git checkout in the script, it takes 6 s, but when I try to save the output to a variable, it takes 45 s
/usr/local/bin/git checkout
I also change /usr/local/bin/git to /usr/bin/git to save the output, and Apple-git finish it immediately.
If the problem was occurring with a specific repository, can you specify the repository?
Is this really reproducible? I would expect the git checkout to be relatively slow when e.g. FSMonitor just started up, but to be fast otherwise.
git checkout
git-for-windows/git
tracker.Setup
microsoft/git
are you using? Is it 32-bit or 64-bit? 64-bitScalar
Details
bash
It completes just as quickly as running git checkout directly
when I use
/usr/local/bin/git checkout
in the script, it takes 6 s, but when I try to save the output to a variable, it takes 45 sI also change /usr/local/bin/git to /usr/bin/git to save the output, and Apple-git finish it immediately.
If the problem was occurring with a specific repository, can you specify the repository?