recovery - Git commands fail for some users, but not all -


i git admin in dev group.

recently, b trying git pull origin resulting in many errors "refs/tags/... " , "refs/heads/..." not point valid object.

so tried fresh git clone , got same errors.

the same thing happening couple other users, not all, including myself (i.e. works fine me.)

after attempts described below tried actual original error messages b, had tail of long list of messages:

... error: refs/tags/v4.3.0_rev2664 not point valid object! error: refs/tags/v4.6.10 not point valid object! fatal: failed read object 0a628d61199464517a9baaa117092fdd73f2f362: permission denied fatal: remote end hung unexpectedly  git did not exit cleanly (exit code 1) (10515 ms @ 01/04/2016 12:35:17 pm) 

so did research , found this:

git refs/remotes/origin/master not point valid object

i followed steps in link on remote repository (after making backup copy) , things got better users, not all.

currently when b tries git pull current repository gets message:

fatal: loose object b8ddd20da1655b990e361c720c2ee2e500d94bad (stored in ./objects/b8/ddd20da1655b990e361c720c2ee2e500d94bad) corrupt 

and when tries git clone gets message:

fatal: failed copy file 'c:\git_temp\v4/.git/objects/09/01785b71fddf0b5bcdb40e07dcd04f697d2576': permission denied 

now when check remote repository folders, find ./objects/b8/ddd20da1655b990e361c720c2ee2e500d94bad exist, ./objects/09/01785b71fddf0b5bcdb40e07dcd04f697d2576 not.

when git cat-file -p on files find valid recent commits.

as before, git pull , git clone work fine me , l.

i asked d git clone repository , got bunch of failed stat .... warnings, continued create cloned repository.

i'm @ loss go next resolve this.

b has bunch of code push need asap.

your problem looks access right problem.

check user has correct access folders , files inside shared copy of git repository : system, open git repo in file explorer, , check if indeed has access objects folder, 09/01785b71fddf0b5bcdb40e07dcd04f697d2576, no folder or file appears lock ...

my suggestion : have access shared repo using same user.

  • either change connection shared folder use same common user everybody,
  • or have access folder through ssh connection, using 1 user account. simple :

    git clone ssh://user@host:port/path/to/folder 

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -