ソースを参照

os.realpath => os.path.realpath in gclient-new-workdir.py

Bug: 721585
Change-Id: Ic6d47201e93cd89a1b58871ef0e3a1b5b708eb47
Reviewed-on: https://chromium-review.googlesource.com/924151
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
Reviewed-by: Aaron Gable <agable@chromium.org>
Commit-Queue: Aaron Gable <agable@chromium.org>
Henrique Ferreiro 7 年 前
コミット
aea45d21ee
2 ファイル変更2 行追加2 行削除
  1. 1 1
      gclient-new-workdir.py
  2. 1 1
      git_common.py

+ 1 - 1
gclient-new-workdir.py

@@ -77,7 +77,7 @@ def main():
 
   gclient = os.path.join(args.repository, '.gclient')
   if os.path.islink(gclient):
-    gclient = os.realpath(gclient)
+    gclient = os.path.realpath(gclient)
   new_gclient = os.path.join(args.new_workdir, '.gclient')
 
   if try_vol_snapshot(args.repository, args.new_workdir):

+ 1 - 1
git_common.py

@@ -1049,5 +1049,5 @@ def clone_file(repository, new_workdir, link, operation):
     os.makedirs(link_dir)
   src = os.path.join(repository, link)
   if os.path.islink(src):
-    src = os.realpath(src)
+    src = os.path.realpath(src)
   operation(src, os.path.join(new_workdir, link))