From cfce0a5b4e13de05221fa4d71c08125ecd515a2d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 29 Feb 2020 17:25:45 +0200 Subject: Don't create .gitattributes in bdep-new --package mode --- bdep/new.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bdep/new.cxx b/bdep/new.cxx index fcef234..1ad5300 100644 --- a/bdep/new.cxx +++ b/bdep/new.cxx @@ -883,9 +883,9 @@ namespace bdep // // See also tests/.gitignore below. // - if (!sub) + if (vc == vcs::git) { - if (vc == vcs::git) + if (!sub) { // Note: use POSIX directory separators in these files. // @@ -918,7 +918,10 @@ namespace bdep << "*.exe.manifest" << endl << "*.pc" << endl; os.close (); + } + if (!pkg && !sub) + { open (out / ".gitattributes"); os << "# This is a good default: files that are auto-detected by git to be text are" << endl << "# converted to the platform-native line ending (LF on Unix, CRLF on Windows)" << endl -- cgit v1.1