It also doesn't work when I run it against the full Dropbox repos directory. Dropbox may have a lock on writing to the directory?
~/Documents/workspace/test-git:12:24$ git remote rm origin ~/Documents/workspace/test-git:12:24$ git remote add origin git@gitserver:/opt/Dropbox/repos/someproj.git ~/Documents/workspace/test-git:12:24$ git push origin master fatal: '/opt/Dropbox/repos/someproj.git' does not appear to be a git repository fatal: The remote end hung up unexpectedly ~/Documents/workspace/test-git:12:24$ On Monday, 1 July 2013 11:57:57 UTC-4, Dennis Chang wrote: > > Hi all, > > This may have been answered a few times already. But I may not understand > the solution. > > I'm following: > http://git-scm.com/book/en/Git-on-the-Server-Setting-Up-the-Server > > to create a Git server (remote bare repository). The host containing the > Git server has got Dropbox installed. > I'd like Dropbox to be my backup of the remote repository. > > Here's my problem. > > Dropbox files is located /opt/Dropbox. Repos are located > /opt/Dropbox/repos. > I've created a soft-link from /repos to /opt/Dropbox/repos. > > I'd like to set origin to this remote repository. > > git remote add origin git@gitserver:/repos/someproj.git > git push origin master > > > However, it seems the soft link, i.e. /repos, won't allow me to write to > the bare repository. > The error I receive is: > > ~/Documents/workspace/test-git:11:35$ git push origin master > fatal: '/repos/someproj.git' does not appear to be a git repository > fatal: The remote end hung up unexpectedly > ~/Documents/workspace/test-git:11:35$ > > > Can anyone help with this scenario? > Thanks, > Dennis > -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.