git-tfs
git-tfs copied to clipboard
git tfs clone command write the .git folder with ownership of admin not actual user
In windows cmd.exe: git tfs clone command writes the .git folder with ownership of admin not actual user
in consequence the tortoisegit throws an error:
... folder .git not owned by current user .....
I never saw that and I doubt it is possible.
Are you really sure that you have not run git-tfs in an admin console?
Workaround: As admin, git the ownership of the repo folder (and subfolders) to the user.
Hello, Thanks for the answer. It is a non admin cmd console. Werner Schleifer
Philippe Miossec @.***> schrieb am Sa., 11. Jan. 2025, 16:45:
I never saw that and I doubt it is possible. Are you really sure that you have not run git-tfs in an admin console? Workaround: As admin, git the ownership of the repo folder (and subfolders) to the user.
— Reply to this email directly, view it on GitHub https://github.com/git-tfs/git-tfs/issues/1536#issuecomment-2585307593, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEW6AWZXPF3NSBXKDLIRS3D2KE4BJAVCNFSM6AAAAABU6M5SNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOBVGMYDONJZGM . You are receiving this because you authored the thread.Message ID: @.***>
I don't see how git-tfs could get admin rights from a context without admin rights without requesting it. So either you found a real big issue in MS Windows or you have admin rights and you don't know it.
If you want it to be investigated, please give as much as possible information how you launch you console, and maybe try to reproduce after a reboot in a newly not admin created console.
Hello,
I've done a reboot. And started a new cmd console in user mode (from windows start menue).
But the cmd console writes the .git folder in administrators ownership.
When I use git_bash.exe(mingw) everything works fine and the .git folder is owned by my own user.
Strange....
Am Sa., 11. Jan. 2025 um 18:47 Uhr schrieb Philippe Miossec < @.***>:
I don't see how git-tfs could get admin rights from a context without admin rights without requesting it. So either you found a real big issue in MS Windows or you have admin rights and you don't know it.
If you want it to be investigated, please give as much as possible information how you launch you console, and maybe try to reproduce after a reboot in a newly created console.
— Reply to this email directly, view it on GitHub https://github.com/git-tfs/git-tfs/issues/1536#issuecomment-2585355042, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEW6AW5PCXHGQM66AGL2XCD2KFKKBAVCNFSM6AAAAABU6M5SNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOBVGM2TKMBUGI . You are receiving this because you authored the thread.Message ID: @.***>
--
Werner Schleifer @.***
@wschleifer are you possibly running the console on a virtual device, possibly Windows Server or over Remote Desktop? Some servers I work with tend to create everything under admin context and don't even show UAC. The Git bash then possibly has some fix for that or something..?