Comments (11)
Scalar on Linux and macOS runs git maintenance start
, part of Git's maintenance feature. It schedules maintenance tasks according to the maintenance.strategy = incremental
config option.
You can inspect the way Git schedules its process runs by running crontab -l
on Linux.
from scalar.
That is quite interesting... My 'crontab -l' contains nothing related to git, I will investigate further.
from scalar.
I think there is a problem with "scalar register", the git config of my repo was modified, but no task appeared under crontab -l. I then executed "git maintenance start" and those tasks then showed up. Likely, 'scalar register' is missing that call, or documentation is unclear that we need to execute 'git maintenance start' in addition to 'scalar register' to get things going.
from scalar.
@ykoehler: that is interesting. scalar register
should definitely be doing that, I think. Could you do a few things for me?
- Run
scalar version
. - Run
git version
. - Run
GIT_TRACE2_PERF=$(pwd)/trace2.txt scalar register
and then attach thattrace2.txt
file here. Feel free to remove any identifiers from that file. Alternatively, send it to me via email: @github.com.
Thanks!
from scalar.
Running on CentOS7
$ scalar version
scalar 0.2.173.2
$ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[branch "master"]
remote = origin
merge = refs/heads/master
$ GIT_TRACE2_PERF=$(pwd)/trace2.txt scalar register
Successfully registered repo at '/work/ion/officeconnect-portal-manager'
$ git --version
git version 2.30.1
$ cat ~/.gitconfig
[user]
name = Yannick Koehler
[pull]
rebase = true
[diff]
submodule = log
[status]
submodulesummary = 1
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[git-p4]
largeFileSystem = GitLFS
largeFileThreshold = 100m
from scalar.
Hi, @ykoehler. It appears your trace upload got mangled somehow. Could you try that again?
Also, it looks like you are building Scalar from source, is that right? (If not, then we made a mistake when building the installer.)
from scalar.
Hi, yes, I was building scalar from source, since there is no RPM for Scalar for CentOS7.
trace2.txt
from scalar.
Thanks so much for this report, @ykoehler. I forgot to add to our logic in Scalar that detects if the feature is available for the non-.vfs.
versions of Git (those versions are available at https://github.com/microsoft/git/releases).
The fix is in #503. You'll need to upgrade to Git 2.31.0 before it will work, since that is the first release where all platforms had working background maintenance.
from scalar.
(Just a note that this issue is closed because the fix is in the main
branch. It has not been released yet.)
from scalar.
Great, but... somehow I can do "git maintenance start" using 2.30.1 and it adds the cron job and seems to be working nicely... But, I will seek out to upgrade my git client.
from scalar.
The issue is that the macOS and Windows versions of git maintenance start
were not ready in v2.30.x. They were available in v2.31.0, and that is now out so there is only a slight value in picking out that one major version on one platform. Thanks for understanding.
from scalar.
Related Issues (20)
- Installation on Mac via brew set my .gitconfig to be owned by root HOT 6
- VS Code interacts poorly with Watchman-based fsmonitor, causing many Git commands running in background HOT 14
- scalar should remove added git setting when un-registering HOT 2
- Allow process-specific Git config with "-c" arguments. HOT 9
- Git version parser can't parse Apple-Git HOT 2
- Getting terminal prompts disabled error when cloning a new repo HOT 9
- Actions: set-env is disabled, breaking Actions workflows HOT 2
- `brew upgrade` failed HOT 5
- Scalar should use Git's background maintenance (drop Scalar.Service from Windows) HOT 4
- Scalar and git workspaces HOT 4
- watchman doesn't show any root being watch, how do I get scalar to detect/use watchman on linux? HOT 4
- Update Readme with current Linux packages HOT 1
- Stale error message referencing GVFS in Scalar clone HOT 4
- Options disabled in "git gui" HOT 9
- Fork.dev integration broken by upgrade to 2.36 HOT 4
- naoyuki
- Support tab-completion in common shells HOT 1
- Replace deprecated `set-output` command with environment file
- Line 3367: Could not reconfigure Scalar enlistments HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scalar.