1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-08 10:13:18 +01:00
git/contrib/fast-import
Luke Diamand 6de040df56 git-p4: handle files with shell metacharacters
git-p4 used to simply pass strings into system() and popen(), and
relied on the shell doing the necessary expansion. This though meant
that shell metacharacters in file names would be corrupted - for
example files with $ or space in them.

Switch to using subprocess.Popen() and friends, and pass in explicit
arrays in the places where it matters. This then avoids needing shell
expansion.

Add trivial helper functions for some common perforce operations. Add
test case.

[pw: test cleanup]

Signed-off-by: Luke Diamand <luke@diamand.org>
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-10-17 20:46:49 -07:00
..
git-import.perl
git-import.sh
git-p4 git-p4: handle files with shell metacharacters 2011-10-17 20:46:49 -07:00
git-p4.bat
git-p4.txt git-p4: Allow branch definition with git config 2011-08-22 21:08:37 -07:00
import-directories.perl perl: use "use warnings" instead of -w 2010-09-27 12:37:56 -07:00
import-tars.perl import-tars: Add support for tarballs compressed with lzma, xz 2009-10-21 17:15:43 -07:00
import-zips.py Correct references to /usr/bin/python which does not exist on FreeBSD 2010-03-24 14:33:54 -07:00