When adding git overlay and target directory already exist, layman exits with failure but it deletes this target directory. This behavior is different from eg. svn type overlays, where target directory is kept intact. Reproducible: Always Steps to Reproduce: 1. mkdir dir with git-overlay name (e.g. zen-overlay) in layman overlay dir and fill it with data 2. layman -L && layman -a zen-overlay Actual Results: layman fails with: * Running command "/usr/bin/git clone "git://zen-sources.org/zen/portage-overlay.git/" "/usr/portage/local/zen-overlay""... fatal: destination directory '/usr/portage/local/zen-overlay' already exists. * Failed to add overlay "zen-overlay". * Error was: Adding the overlay failed! and zen-overlay directory is removed completely. Expected Results: layman aborting with failure message while keeping zen-overlay directory intact
Fixed in layman-1.2.1. Available via portage.