Rename tar_scm to tar_scm.py

This rename is a preparation so that it can be used as a module inside
unittests.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Fix directory name of repository clone

For the local clone we don't want to keep the SCM extension or any
parameters that are passed via the URL.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Merge pull request #46 from jblunck/fix_clone_dirname

Fix directory name of repository clone
Fix handling of symbolic links

Copy the symlink itself instead of its content.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Fix handling of symbolic links on cleanup

Lets simplify this and use shutil.rmtree() to replace our buggy implementation.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Update Fixtures and CommonTests class to include a symlink test

This test is checking if we see updates to to repo/a through the symlink
repo/c.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Update Fixtures and CommonTests to include a broken symlink test

This test is checking if we correctly handle and not dereference a broken
symlink in the repository.

Signed-off-by: Jan Blunck <jblunck@infradead.org>