cweiske / phorkie

Self-hosted pastebin software written in PHP. Pastes are editable, forkable, may have multiple files and are stored in git repositories.
https://cweiske.de/phorkie.htm
GNU Affero General Public License v3.0
216 stars 23 forks source link

invalid repo: fatal error #24

Closed cweiske closed 7 years ago

cweiske commented 7 years ago

Repos created before #23 was fixed:

Some errors in executing git command Output: Error: fatal: your current branch 'master' does not have any commits yet

#0 /home/cweiske/Dev/phorkie/src/phorkie/Repository.php(106): VersionControl_Git_Util_Command->execute()
#1 /home/cweiske/Dev/phorkie/src/phorkie/Repository.php(75): phorkie\Repository->loadHash()
#2 /home/cweiske/Dev/phorkie/src/phorkie/Repositories.php(68): phorkie\Repository->loadById('16')
#3 /home/cweiske/Dev/phorkie/www/list.php(19): phorkie\Repositories->getList(1, 10)
#4 {main}