Merge branch 'maint'
* maint: Further 1.5.3.5 fixes described in release notes Avoid invoking diff drivers during git-stash attr: fix segfault in gitattributes parsing code Define NI_MAXSERV if not defined by operating system Ensure we add directories in the correct order Avoid scary errors about tagged trees/blobs during git-fetch
This commit is contained in:
@ -219,6 +219,17 @@ print "Applying\n";
|
||||
|
||||
print "Patch applied successfully. Adding new files and directories to CVS\n";
|
||||
my $dirtypatch = 0;
|
||||
|
||||
#
|
||||
# We have to add the directories in order otherwise we will have
|
||||
# problems when we try and add the sub-directory of a directory we
|
||||
# have not added yet.
|
||||
#
|
||||
# Luckily this is easy to deal with by sorting the directories and
|
||||
# dealing with the shortest ones first.
|
||||
#
|
||||
@dirs = sort { length $a <=> length $b} @dirs;
|
||||
|
||||
foreach my $d (@dirs) {
|
||||
if (system(@cvs,'add',$d)) {
|
||||
$dirtypatch = 1;
|
||||
|
Reference in New Issue
Block a user