Skip to content

Scalar integration did not set up correctly #5908

@brantgurga

Description

@brantgurga

Existing issues matching what you're seeing

  • I was not able to find an open or closed issue matching what I'm seeing

Git for Windows version

git version 2.51.1.windows.1
cpu: x86_64
built from commit: 1454f0a9c4a3a22fb3fd7cc33f76f88cd65ced41
sizeof-long: 4
sizeof-size_t: 8
shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
feature: fsmonitor--daemon
libcurl: 8.16.0
OpenSSL: OpenSSL 3.5.4 30 Sep 2025
zlib: 1.3.1
SHA-1: SHA1_DC
SHA-256: SHA256_BLK
default-ref-format: files
default-hash: sha1

Windows version

Windows 11

Windows CPU architecture

x86_64 (64-bit)

Additional Windows version information

Admin Protection is enabled which I think is relevant. Admin Protection in essence automates having a second user profile that is administrator. So unlike UAC which provides an optional consent dialog depending on configuration and elevates a command within the same user profile, with Admin Protection, if I am 'brant' then behind the scenes Windows make a separate ADMIN_brant profile where elevated operations interact.

Admin Protection was made user enrollable in Canary builds of Windows though recent builds turned it off and removed the user interface for it. However, the feature is present in release versions of Windows and needs enrolled by group policy for that enablement path.

See https://blogs.windows.com/windowsdeveloper/2025/05/19/enhance-your-application-security-with-administrator-protection/ for more details on the feature.

Options set during installation

Editor Option: Nano
Custom Editor Path:
Default Branch Option:
Path Option: Cmd
SSH Option: ExternalOpenSSH
Tortoise Option: false
CURL Option: WinSSL
CRLF Option: CRLFAlways
Bash Terminal Option: ConHost
Git Pull Behavior Option: Merge
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Disabled
Enable FSMonitor: Disabled

Other interesting things

Dialog output of error during install:

---------------------------
Git 2.51.1 Setup
---------------------------
Line 3520: Could not reconfigure Scalar enlistments (output could not be redirected to C:\Users\ADMIN_~1\AppData\Local\Temp\is-7NBFG.tmp.scalar-reconfigure.out)
---------------------------
OK   
---------------------------

Note that path with ADMIN_~1 which implies two things: It is getting a path of the elevated profile and it's unable to do whatever interaction. I did do a search of the repository for the message and wasn't coming up with where that Could not reconfigure Scalar enlistments message comes from to identify what it's even trying to do.

Terminal/shell

not applicable/graphical installer issue

Commands that trigger the issue

Not applicable. Install issue.

Expected behaviour

Install without error

Actual behaviour

Errors with the dialog:

---------------------------
Git 2.51.1 Setup
---------------------------
Line 3520: Could not reconfigure Scalar enlistments (output could not be redirected to C:\Users\ADMIN_~1\AppData\Local\Temp\is-7NBFG.tmp.scalar-reconfigure.out)
---------------------------
OK   
---------------------------

However the install otherwise continues/completes so this erroring doesn't trickle up into the overall install.

Repository

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help Wantedhelp is requested from collaborators, please!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions