I am having some trouble with git. Hopefully someone has some advice.
I have a master repository that is located on a NAS drive. Then I have user repositories on linux (ubuntu 12.04 server). The NAS drive is mounted on the linux server using CIFS so there is no need for either HTTP or SSH when transferring files from/to remote repositories.
When I try to push from a user repository to the master repository on the NAS I consistently get errors related the inability to set permission bits on the NAS. I have researched this alot over the last few days and although all users have read/write file permissions on the NAS, due to the way NAS works you cannot change the permission bits by doing a chmod. The permission bits on files created on the NAS are set from the mount command arguments (file_mode, dir_mode, etc).
This is the error I get when I try to push from a user repository to the master repository on the NAS:
dba@clp01:~/slave_repository.git$ git push master_git
Counting objects: 6, done.
Delta compression using up to 12 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (5/5), 2.52 KiB, done.
Total 5 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (5/5), done.
error: cannot fix permission bits on refs/heads/master.lock
fatal: Unable to create
'/mnt/nassource/master_repository.git/.git/refs/heads/master.lock':
Operation not permitted
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
dba@clp01:~/slave_repository.git$ git config --global --list
user.name=DBA
user.email=dba@cont.com
core.editor=emacs
core.filemode=false
merge.tool=diff
Any advice would be greatly appreciated......