Changeset 2305 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Env.pm


Ignore:
Timestamp:
Sep 6, 2017, 7:36:28 PM (7 years ago)
Author:
Bruno Cornec
Message:

Fix newproj for git

handle the case now in the vcs_compliant function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Env.pm

    r2292 r2305  
    260260
    261261my $pbconfpath = "$ENV{'PBDEFDIR'}/$ENV{'PBPROJ'}";
    262 
    263 # Put under CMS the PBPROJ dir
    264 if ($action =~ /^newproj$/) {
    265     if (! -d "$pbconfpath") {
    266         # TODO: There is also the need to do
    267         # svn import svn://repo "$pbconfpath
    268         # in case it doesn't exist there
    269         pb_mkdir_p("$pbconfpath");
    270     }
    271     pb_vcs_add($pbconf{$ENV{'PBPROJ'}},"$pbconfpath");
    272 }
    273262
    274263#
     
    13111300            }
    13121301            pb_vcs_add($pbconf{$ENV{'PBPROJ'}},$ENV{'PBCONFDIR'});
    1313             my $msg = "updated to ".basename("$pbconfpath");
    1314             $msg = "Project $ENV{'PBPROJ'} creation" if (defined $pbinit);
    1315             pb_vcs_checkin($pbconf{$ENV{'PBPROJ'}},"$pbconfpath",$msg);
     1302            my $msg = "Project $ENV{'PBPROJ'} creation";
     1303            pb_vcs_checkin($pbconf{$ENV{'PBPROJ'}},"$ENV{'PBCONFDIR'}",$msg);
    13161304        } else {
    13171305            pb_log(0,"ERROR: no pbroot defined, used $ENV{'PBROOTDIR'}, without finding $ENV{'PBPROJ'}.yml in it\n");
Note: See TracChangeset for help on using the changeset viewer.