Mercurial > treepkg > treepkg
comparison treepkg/git.py @ 446:bee2e5f6cf8d
Ignore redundancy of trailing slashes while ensuring to have at least one.
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 09 Aug 2010 13:56:31 +0000 |
parents | cb061f0474ba |
children | 1d16e4844f98 |
comparison
equal
deleted
inserted
replaced
445:e049599fde1a | 446:bee2e5f6cf8d |
---|---|
35 """Runs git pull on the localdir.""" | 35 """Runs git pull on the localdir.""" |
36 run.call(cmdexpand("git pull -q"), cwd=localdir) | 36 run.call(cmdexpand("git pull -q"), cwd=localdir) |
37 | 37 |
38 def export(src, dest): | 38 def export(src, dest): |
39 """Exports the local branch from src to dest""" | 39 """Exports the local branch from src to dest""" |
40 dest = os.path.normpath(dest) + os.sep | 40 dest = dest + os.sep |
41 run.call(cmdexpand("git checkout-index -a -f --prefix=$dest", **locals()), | 41 run.call(cmdexpand("git checkout-index -a -f --prefix=$dest", **locals()), |
42 cwd=src) | 42 cwd=src) |
43 | 43 |
44 def last_changed_revision(git_working_copy): | 44 def last_changed_revision(git_working_copy): |
45 """Return the SHA1 sum of the latest commit""" | 45 """Return the SHA1 sum of the latest commit""" |