Menu

#48 Errors in Git with a remote repository in EncFSMP shared with Dropbox

2.0
open
RomanH
None
2016-01-23
2016-01-23
Luis Forra
No

I have a remote repository in a EncFSMP volume that syncs with dropbox that gives me a lot off errors, the errors dont show when dropbox in not syncing

Windows 10 64bits EncFSMP 0.10.2

batch file to duplicate the error:

set lrepo_drive=x:
set lrepo_dir=int
set len=150000
set /a num=260
:loop
    set fn=teste%num%.txt
    set fnf="%lrepo_drive%\%lrepo_dir%\%fn%"
    echo %fnf%
    fsutil file createnew %fnf% %len%
    cd %lrepo_drive%
    cd \%lrepo_dir%
    git add %fn%
    git commit -a --allow-empty-message --message=""
    if errorlevel 1 goto :error
    git push --recurse-submodules=check --progress "int" master:master  --tags
    if errorlevel 1 goto :error
    git pull --progress "int" master:master 
    if errorlevel 1 goto :error 
    set /a num=num+1
goto :loop
goto end
:error
echo Error
pause  
:end

Some errors:

error: Ref refs/heads/master is at 682063d19607b0b1005bc18b76a3add93d1ab491 but expected 0000000000000000000000000000000000000000
remote: error: failed to lock refs/heads/master
To P:/Git/int
 ! [remote rejected] master -> master (failed to lock)
error: failed to push some refs to 'P:/Git/int'
...
X:\INT>git pull --progress "int" master:master
fatal: Couldn't find remote ref master
fatal: The remote end hung up unexpectedly
...
X:\INT>git pull --progress "int" master:master
error: refs/heads/master does not point to a valid object!
fatal: Couldn't find remote ref master
fatal: The remote end hung up unexpectedly
...
X:\INT>git push --recurse-submodules=check --progress "int" master:master  --tags
error: refs/heads/master does not point to a valid object!
Counting objects: 428, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (371/371), done.
Writing objects: 100% (393/393), 262.61 KiB | 0 bytes/s, done.
Total 393 (delta 244), reused 0 (delta 0)
error: Ref refs/heads/master is at 260e6b740ab01ed76a270565814aaf32c36d7a4e but expected 0000000000000000000000000000000000000000
remote: error: failed to lock refs/heads/master
To P:/Git/int
 ! [remote rejected] master -> master (failed to lock)
error: failed to push some refs to 'P:/Git/int'

Discussion


Log in to post a comment.

Auth0 Logo