This repository was archived by the owner on Mar 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
This repository was archived by the owner on Mar 6, 2023. It is now read-only.
Missing documentation #5
Copy link
Copy link
Open
Description
I just tried around with your fabdeploit and got this error:
fab -u git -H localhost deploy
[localhost] Executing task 'deploy'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fabric/main.py", line 757, in main
*args, **kwargs
File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 386, in execute
multiprocessing
File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 276, in _execute
return task.run(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 173, in run
return self.wrapped(*args, **kwargs)
File "/home/speedy/git/django_deploy/fabfile.py", line 43, in deploy
commit = git.release()
File "/usr/local/lib/python2.7/dist-packages/fabdeploit/git.py", line 292, in release
self.create_release_commit(message=message)
File "/usr/local/lib/python2.7/dist-packages/fabdeploit/git.py", line 226, in create_release_commit
commit = repo.heads[self.release_branch].commit
File "/usr/local/lib/python2.7/dist-packages/git/util.py", line 893, in __getitem__
raise IndexError("No item found with id %r" % (self._prefix + index))
IndexError: No item found with id 'master'
Steps to reproduce:
- use the django example from docs
- setup a simple django app
git initgit checkout -b masterfab -u <user> -H <host> deploy
Solution:
The master/production branch must be commited (inital commit is enough) before running fab. This is not really an error in my eyes, but some documentation would be nice
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels