summaryrefslogtreecommitdiff
path: root/contrib/fast-import/import-zips.py
Commit message (Collapse)AuthorAgeFilesLines
* contrib/fast-import/import-zips.py: use spaces instead of tabsDavid Aguilar2013-02-241-49/+49
| | | | | | | | Follow the conventional Python style by using 4-space indents instead of hard tabs. Signed-off-by: David Aguilar <davvid@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* contrib/fast-import/import-zips.py: fix broken error messageDavid Aguilar2013-02-241-2/+2
| | | | | | | | | | The 'sys' module is not imported but all of the bits we want from it are. Adjust the script to not fail when run on old Python versions and fix the inconsistent use of tabs. Signed-off-by: David Aguilar <davvid@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* contrib/fast-import: use a lowercase "usage:" stringDavid Aguilar2013-02-241-1/+1
| | | | | | | | Make the usage string consistent with Git. Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: David Aguilar <davvid@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* Add checks to Python scripts for version dependencies.Eric S. Raymond2012-12-281-1/+6
| | | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* Correct references to /usr/bin/python which does not exist on FreeBSDR. Tyler Ballance2010-03-241-1/+1
| | | | | | | | On FreeBSD, Python does not ship as part of the base system but is available via the ports system, which install the binary in /usr/local/bin. Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* import-zips: fix thinkoJohannes Schindelin2009-03-291-1/+2
| | | | | | | | | | | Embarrassingly, the common prefix calculation did not work properly, due to a mistake in the assignment: instead of assigning the dirname of the current file name, the dirname of the current common prefix needs to be assigned to common prefix, when the current prefix does not match the current file name. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* Add another fast-import example, this time for .zip filesJohannes Schindelin2008-07-011-0/+72
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>