Fix infinite recursion on absolute paths
commit01f76ccd02493effc275265ddf3b3f567eedd917
authorKarl Hasselström <kha@treskal.com>
Wed, 24 May 2006 06:06:43 +0000 (24 08:06 +0200)
committerCatalin Marinas <catalin.marinas@gmail.com>
Wed, 24 May 2006 20:57:34 +0000 (24 21:57 +0100)
treee9865a3f0949fbd5bf6aaf20c1cac276a349948f
parent16dcfb85fbcbb4a961ed18f8e69d3cc2387c33df
Fix infinite recursion on absolute paths

Calling create_dirs with an absolute path caused infinite recursion,
since os.path.dirname('/') == '/'. Fix this by exiting early if the
given path already is a directory.
stgit/utils.py