Browse Source

moved git2json down

Schultz 8 years ago
parent
commit
83e5320368
2 changed files with 6 additions and 2 deletions
  1. 2
    0
      execution.py
  2. 4
    2
      gitstats

+ 2
- 0
execution.py View File

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

+ 4
- 2
gitstats View File

1573
 
1573
 
1574
         outputpath = os.path.abspath(args[-1])
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
         rundir = os.getcwd()
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
         try:
1583
         try:
1582
             os.makedirs(outputpath)
1584
             os.makedirs(outputpath)
1583
         except OSError:
1585
         except OSError: