Explorar el Código

moved git2json down

Schultz hace 8 años
padre
commit
83e5320368
Se han modificado 2 ficheros con 6 adiciones y 2 borrados
  1. 2
    0
      execution.py
  2. 4
    2
      gitstats

+ 2
- 0
execution.py Ver fichero

@@ -1,7 +1,9 @@
1 1
 import os
2 2
 import sys
3 3
 
4
+# NOTE: this files needs to be in same directory as gitstats executable
4 5
 # python execution.py <source folder> <output folder>
6
+
5 7
 def generateGitstatsOnFolders (): 
6 8
 	# print (sys.argv)
7 9
 

+ 4
- 2
gitstats Ver fichero

@@ -1573,11 +1573,13 @@ class GitStats:
1573 1573
 
1574 1574
         outputpath = os.path.abspath(args[-1])
1575 1575
 
1576
-        # execute git2json for top files
1577
-        os.system("cd "+os.path.abspath(args[0])+" && git2json > '"+os.path.abspath(args[-1])+"/top_committed_files.json'")
1576
+       
1578 1577
 
1579 1578
         rundir = os.getcwd()
1580 1579
 
1580
+         # execute git2json for top files
1581
+        os.system("cd "+os.path.abspath(args[0])+" && git2json > '"+os.path.abspath(args[-1])+"/top_committed_files.json'")
1582
+
1581 1583
         try:
1582 1584
             os.makedirs(outputpath)
1583 1585
         except OSError: