Files
oddmuse/modules
Alex Schroeder 48ec41b566 git: added git.t, rewrote git.pl
Tests were added. As I wrote the tests, I realized that GitRun was
printing to STDOUT even though we had created a local *STDOUT and opened
it to write to a memory file (like PageHtml does). Apparently this is
not inherited to the child process. I now use the solution provided for
in the perldoc for open. Unfortunately it requires a temp file. Trying
to use a memory file results in an error. Temporary files are a mess if
I want to access the output: I need to close it and reopen it for
reading. That's why GitRun only does that if $GitDebug is set. This is
what most of the tests will use: set $GitDebug and examine $GitResult.
At the same time I realized that the error message was never being
triggered. The previous code was tricky because it only considered
showing an error message in a non-void context, ie. when called from
maintenance. I wasn't sure this was an actual benefit and decided to
remove it altogether. I we really want to, we can set $GitDebug and
examine $GitResult in GitCleanup.
2014-07-31 13:18:32 +02:00
..
2014-06-23 12:54:39 +02:00
2014-06-16 11:19:24 +02:00
2014-07-03 09:17:49 +02:00
2014-06-16 11:19:24 +02:00
2014-07-11 19:09:33 +02:00
2014-06-16 11:19:24 +02:00
2014-06-16 11:19:24 +02:00
2014-07-11 19:09:33 +02:00
2013-03-05 23:07:23 +01:00
2014-06-16 11:19:24 +02:00
2014-04-15 07:31:50 +02:00
2005-10-07 23:23:30 +00:00
2014-07-04 10:33:33 +02:00
2014-07-31 13:18:32 +02:00
2014-06-16 11:19:24 +02:00
2014-06-16 11:19:24 +02:00
2012-07-21 00:40:42 +02:00
2013-01-24 23:31:11 +01:00
New
2009-02-22 19:40:14 +00:00
2014-07-11 19:09:33 +02:00
2013-01-13 01:04:19 +01:00
2014-01-24 23:19:58 +01:00
2011-10-16 10:16:05 +00:00
new
2004-09-04 09:43:19 +00:00
2004-09-08 20:00:29 +00:00
2005-03-25 11:44:48 +00:00
2014-07-11 19:09:33 +02:00
new
2004-05-26 22:46:46 +00:00
2014-06-16 11:19:24 +02:00
New
2009-08-11 13:36:23 +00:00
2014-07-11 19:09:33 +02:00
2014-06-16 11:19:24 +02:00
2014-06-16 11:19:24 +02:00
2014-03-18 13:01:27 +01:00
2014-07-11 19:09:33 +02:00
2010-05-15 20:56:03 +00:00
2013-05-19 15:32:54 +02:00
2012-07-21 00:40:42 +02:00
2012-06-14 10:21:40 +02:00
2013-02-01 15:30:31 +01:00
2006-11-11 16:27:11 +00:00
2004-01-30 21:35:44 +00:00