Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.4:Update
git.14685
0004-fast-import-stop-creating-leading-director...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-fast-import-stop-creating-leading-directories-for-im.patch of Package git.14685
From 6c951c1b56ffdbcfe8675643d9d309786febcb30 Mon Sep 17 00:00:00 2001 From: Jeff King <peff@peff.net> Date: Thu, 29 Aug 2019 13:07:04 -0400 Subject: [PATCH 04/28] fast-import: stop creating leading directories for import-marks When asked to import marks from "subdir/file.marks", we create the leading directory "subdir" if it doesn't exist. This makes no sense for importing marks, where we only ever open the path for reading. Most of the time this would be a noop, since if the marks file exists, then the leading directories exist, too. But if it doesn't (e.g., because --import-marks-if-exists was used), then we'd create the useless directory. This dates back to 580d5f83e7 (fast-import: always create marks_file directories, 2010-03-29). Even then it was useless, so it seems to have been added in error alongside the --export-marks case (which _is_ helpful). Signed-off-by: Jeff King <peff@peff.net> --- fast-import.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fast-import.c b/fast-import.c index f5a82470bd..afb1514533 100644 --- a/fast-import.c +++ b/fast-import.c @@ -3229,7 +3229,6 @@ static void option_import_marks(const char *marks, } import_marks_file = make_fast_import_path(marks); - safe_create_leading_directories_const(import_marks_file); import_marks_file_from_stream = from_stream; import_marks_file_ignore_missing = ignore_missing; } -- 2.24.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor