File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,9 +80,9 @@ Is your Git repository bursting at the seams?
8080
8181 * On other platforms: TBD
8282
83- 3 . Run:
83+ 3 . Change to the directory containing the Git repository, then run
8484
85- git sizer [<opt>...] [<path-to-git-repository>]
85+ git sizer [<opt>...]
8686
8787 To get a summary of the current repository, all you need is
8888
Original file line number Diff line number Diff line change @@ -107,19 +107,13 @@ func mainImplementation() error {
107107
108108 args := flag .Args ()
109109
110- var path string
111- switch len (args ) {
112- case 0 :
113- path = "."
114- case 1 :
115- path = args [0 ]
116- default :
110+ if len (args ) != 0 {
117111 return errors .New ("excess arguments" )
118112 }
119113
120- repo , err := sizes .NewRepository (path )
114+ repo , err := sizes .NewRepository ("." )
121115 if err != nil {
122- return fmt .Errorf ("couldn't open %v : %s" , path , err )
116+ return fmt .Errorf ("couldn't open Git repository : %s" , err )
123117 }
124118 defer repo .Close ()
125119
You can’t perform that action at this time.
0 commit comments