Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fossil: not authorized to write

Tags:

fossil

What am I doing wrong? I realize I havent read up on any user management but I'm completely local here and never created any users myself so why wouldnt it work?

pc@pc-desktop:~/Desktop$ ./fossil test-hash-passwords test-fossil 
pc@pc-desktop:~/Desktop$ ./fossil server
Listening for HTTP requests on TCP port 8080


pc@pc-desktop:~/testcheckout$ ./fossil clone http://localhost:8080 bla
pc@pc-desktop:~/testcheckout$ ./fossil add .
current directory is not within an open checkout
pc@pc-desktop:~/testcheckout$ ./fossil open bla
pc@pc-desktop:~/testcheckout$ ./fossil add .
pc@pc-desktop:~/testcheckout$ ./fossil test-hash-passwords test-fossil 
pc@pc-desktop:~/testcheckout$ ./fossil push
Push to http://localhost:8080
Round-trips: 1   Artifacts sent: 0  received: 0
Error: not authorized to write
Round-trips: 1   Artifacts sent: 0  received: 0
Push finished with 385 bytes sent, 303 bytes received
like image 851
Blub Avatar asked Feb 11 '15 06:02

Blub


1 Answers

[I can't comment, but...] You can also add the user credentials when cloning the repository:

fossil clone http://username:pass@URL:8080 repository_name

I'm the only one working on my projects so I set up auto-sync - whenever I commit I can commit local and send remote in one step [just fossil commit].

like image 183
deroses Avatar answered Oct 13 '22 00:10

deroses