Skip to content

Strip trailing slash from basename which can now be a directory #71

Description

@jfkw

Following PR #65 basename can be detected as a directory, most commonly a local git clone. Ensure that the trailing slash is stripped from basename before processing as sensible input to sanitize_subdir(). Also enhance santize_subdir() to not care if there is a trailing slash.

ERROR:obs-service-go_modules:Invalid path: /home/adrian/space/home:adrianSuSE:branches:devel:Factory:git-workflow/gitea/gitea-src-1.24.0-rc0/go.mod not subdir of /tmp/tmp3ri9md1t

Per @adrianschroeter, the above run "expanded the full path to archive but failed to strip it when comparing it in the tempdir."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions