install, wiki-type git, fatal

11 views
Skip to first unread message

sak

unread,
Apr 28, 2012, 9:53:43 PM4/28/12
to mtr...@googlegroups.com
mtrack installed in... well you already know that... :-)


[root@celeron mtrack]# php bin/init.php --repo sak svn /home/sak/svn --wiki-type git
[...]

 ** Creating repo 'wiki' of type git to hold Wiki content at /opt/mtrack/var/repos/default/wiki
 ** (use --repo option to specify an alternate location)
 ** (use --wiki-type option to specify an alternate type)
PHP Notice:  Undefined index: email in /opt/mtrack/inc/scm/git.php on line 194
wiki: Today
warning: You appear to have cloned an empty repository.
wiki: WikiStart
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to '/opt/mtrack/var/repos/default/wiki'

and when you try to browse the wiki:

An error occurred!

don't know which revision to use (,branch,master)
#0 /opt/mtrack/inc/scm/git.php(291): MTrackSCM->resolveRevision(NULL, 'branch', 'master')
#1 /opt/mtrack/inc/wiki-item.php(136): MTrackSCMGit->readdir('')
#2 /opt/mtrack/inc/wiki-item.php(156): MTrackWikiItem::_build_tree(Object(stdClass), Object(MTrackSCMGit), '', '.md')
#3 [internal function]: MTrackWikiItem::_build_tree_top()
#4 /opt/mtrack/inc/cache.php(162): call_user_func_array(Array, Array)
#5 /opt/mtrack/inc/wiki-item.php(162): mtrack_cache(Array, Array, 864000)
#6 /opt/mtrack/web/wiki.php(37): MTrackWikiItem::get_wiki_tree()
#7 {main} 

today is not my day...

Wez Furlong

unread,
Apr 29, 2012, 9:55:39 AM4/29/12
to sergio...@gmail.com, mtr...@googlegroups.com
Thanks for this report; I've pushed a fix:

--Wez.

--
The mtrack software development tracker
To post to this group, send email to mtr...@googlegroups.com
To unsubscribe, send email to mtrack+un...@googlegroups.com
For more options: http://groups.google.com/group/mtrack?hl=en
#mtrack on the freenode IRC network

Sergio A. Kessler

unread,
Apr 29, 2012, 12:04:02 PM4/29/12
to Wez Furlong, mtr...@googlegroups.com
ok, will update, try again and report back...

thanks !

Sergio A. Kessler

unread,
Apr 29, 2012, 12:20:49 PM4/29/12
to Wez Furlong, mtr...@googlegroups.com
so:

# hg pull
[...]
# hg update
[...]
# php bin/init.php --repo sak svn /home/sak/svn --wiki-type git
[...]
** Creating repo 'wiki' of type git to hold Wiki content at
/opt/mtrack/var/repos/default/wiki
** (use --repo option to specify an alternate location)
** (use --wiki-type option to specify an alternate type)
PHP Notice: Undefined index: email in /opt/mtrack/inc/scm/git.php on line 190
wiki: Today
warning: You appear to have cloned an empty repository.
PHP Notice: Undefined index: email in /opt/mtrack/inc/scm/git.php on line 190
wiki: WikiStart
PHP Notice: Undefined index: email in /opt/mtrack/inc/scm/git.php on line 190
Counting objects: 6, done.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 711 bytes, done.
Total 6 (delta 1), reused 0 (delta 0)
Unpacking objects: 100% (6/6), done.
To /opt/mtrack/var/repos/default/wiki
* [new branch] master -> master


and now editing and saving a wiki page is fine and fast
Reply all
Reply to author
Forward
0 new messages