django__django-14382
django-admin startapp with trailing slash in directory name results in error
Verdict: the issue points to the file or function that was changed (Tier B).
Removing potential trailing slashes would solve the problem: self.validate_name(os.path.basename(target.rstrip(os.sep)), 'directory')
The two checks disagreed (stated fix vs. points to it); the lower reading shown: “Removing potential trailing slashes would solve the problem: self.validate_name(os.path.basename(target.rstrip(os.sep)), 'directory')”
All SWE-bench Lite tasks · more django/django tasks · How the check works