Changeset 119868 in spip-zone


Ignore:
Timestamp:
Jan 20, 2020, 1:53:10 PM (5 weeks ago)
Author:
Cerdic
Message:

eviter une erreur quand on essaye de recuperer le lastmodified d'un fichier qui n'est pas encore dans svn

Location:
_plugins_/trad-lang/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/trad-lang/trunk

    • Property subgit:lock:4b0aa91f861262358a1f11bbbccd4cdfd7fdbe3a deleted
    • Property subgit:lock:40f67a21c63e2ab0dee8ec2e9daaf1e30ec77b88 set to 2020-01-20T15:00:37.968
  • _plugins_/trad-lang/trunk/salvatore/vcs/svn.php

    r119866 r119868  
    3838        chdir($dir_repo);
    3939        $file = escapeshellarg($file);
    40         $lastmodified = exec('env LC_MESSAGES=en_US.UTF-8 svn info ' . $file . "| awk '/^Last Changed Date/ { print $4 \" \" $5 }'");
     40        $lastmodified = exec('env LC_MESSAGES=en_US.UTF-8 svn info ' . $file . " 2>/dev/null | awk '/^Last Changed Date/ { print $4 \" \" $5 }'");
    4141        $lastmodified = strtotime($lastmodified);
    4242        chdir($d);
Note: See TracChangeset for help on using the changeset viewer.