Procházet zdrojové kódy

path switch for execution

Schultz před 8 roky
rodič
revize
75d7794597
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      gitstats

+ 1
- 1
gitstats Zobrazit soubor

@@ -1583,7 +1583,7 @@ class GitStats:
1583 1583
         outputpath = os.path.abspath(args[-1])
1584 1584
 
1585 1585
         # execute git2json for top files
1586
-        os.system("git2json > '"+os.path.abspath(args[-1])+"/top_committed_files.json'")
1586
+        os.system("cd "+os.path.abspath(args[0])+" && git2json > '"+os.path.abspath(args[-1])+"/top_committed_files.json'")
1587 1587
 
1588 1588
         rundir = os.getcwd()
1589 1589