def incremental
      log.internal(log_key) { "Performing incremental cache" }

      create_cache_path
      remove_git_dirs

      git_cmd("add -A -f")

      begin
        git_cmd(%Q{commit -q -m "Backup of #{tag}"})
      rescue CommandFailed => e
        raise unless e.message.include?("nothing to commit")
      end

      git_cmd(%Q{tag -f "#{tag}"})
    end
def incremental
      log.internal(log_key) { "Performing incremental cache" }

      create_cache_path
      remove_git_dirs

      git_cmd("add -A -f")

      begin
        git_cmd(%Q{commit -q -m "Backup of #{tag}"})
      rescue CommandFailed => e
        raise unless e.message.include?("nothing to commit")
      end

      git_cmd(%Q{tag -f "#{tag}"})
    end
Create an incremental install path cache for the software step