Error: Permition denied. git should not try to access root account if I work under common user
Hi.
When I use git pull -v --rebase command under user I got this error:
POST git-upload-pack (947 bytes)
POST git-upload-pack (452 bytes)
remote: warning: unable to access '/root/.config/git/attributes': Permission denied
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 3), reused 0 (delta 0)
Unpacking objects: 100% (4/4), done.
From https://xxxx/gitdev/main
b446c31..f275d62 master -> origin/master = [up to date] buy_dev -> origin/buy_dev Created autostash: 48d1246 HEAD is now at 3ecd306 Do not guard by default Changes from b446c313d9a9caccfeb34ef2c521c4ac03c24c6e to f275d62585211806e8e0b2350bbf4f0f3025da79: conf/app.staging.conf | 1 + 1 file changed, 1 insertion(+)
First, rewinding head to replay your work on top of it...
Applying: BUGFIX: Do not fall if we are creating new database
Applying: Do not pull data from server. Do not count all rows
Applying: Do not guard by default
Applied autostash.
git should not try to access root account if I work under common user
Quoted 10 lines · KES
Hi.
When I use
git pull -v --rebasecommand under user I got this error:POST git-upload-pack (947 bytes)
POST git-upload-pack (452 bytes)
remote: warning: unable to access '/root/.config/git/attributes': Permission denied
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 3), reused 0 (delta 0)
These messages are from the remote side (the machine you're pulling from). Something there is telling git that /root is the proper home directory, and it's trying to read that file.
You should find out whoever is running that remote server and tell them that their server is misconfigured.
Signature · 3 lines
brian m. carlson / brian with sandals: Houston, Texas, US https://www.crustytoothpaste.net/~bmc | My opinion only OpenPGP: https://keybase.io/bk2204