Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | git: Add '--' to "git rev-list" runs to avoid ambiguous arguments | Alberto Bertogli | 2014-12-31 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If there is a branch and a file with the same name, git-arr will fail to generate, as git will complain when running git rev-list. For example, if there is both a file and a branch called "hooks" in the repository, git-arr would fail as follows: === git-arr running: ['git', '--git-dir=/some/repo', 'rev-list', '--max-count=1', '--header', u'hooks']) fatal: ambiguous argument 'hooks': both revision and filename Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]' Traceback (most recent call last): File "./git-arr", line 457, in <module> main() File "./git-arr", line 452, in main skip_index = len(opts.only) > 0) File "./git-arr", line 388, in generate branch_mtime = r.commit(bn).committer_date.epoch AttributeError: 'NoneType' object has no attribute 'committer_date' To fix that, this patch appends a "--" as the last argument to rev-list, which indicates that it has completed the revision list, which disambiguates the argument. While at it, a minor typo in a comment is also fixed. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar> | ||||
* | git.py: Parse timestamps from UTC, not from local time | Alberto Bertogli | 2014-10-05 | 1 | -1/+1 |
| | | | | | | | | | | | The current parsing of dates from git incorrectly uses datetime.fromtimestamp(), which returns the *local* date and time corresponding to the given timestamp. Instead, it should be using datetime.utcfromtimestamp() which returns the UTC date and time, as the rest of the code expects. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar> | ||||
* | Show the age of a repository in the index, via javascript | Alberto Bertogli | 2013-11-02 | 1 | -1/+12 |
| | | | | | | | | | This patch adds the age of the repository to the index view, using javascript to give a nice human string for the age. When javascript is not available, the element remains hidden. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar> | ||||
* | Add embed data URI image blob support | Vanya Sergeev | 2013-11-02 | 1 | -1/+5 |
| | |||||
* | Fix parsing of empty commit messages | Vanya Sergeev | 2013-10-12 | 1 | -1/+6 |
| | |||||
* | Improve the way we find repo paths | Alberto Bertogli | 2012-11-11 | 1 | -3/+9 |
| | | | | | | | | | | This patch improves the way we find the path to the repositories, both in the recursive and in the non-recursive cases. We now support specifying non-bare repositories directly, and also recursing on them. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar> | ||||
* | Initial commit0.01 | Alberto Bertogli | 2012-11-10 | 1 | -0/+522 |
Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar> |