File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,9 @@ Is your Git repository bursting at the seams?
80
80
81
81
* On other platforms: TBD
82
82
83
- 3 . Run:
83
+ 3 . Change to the directory containing the Git repository, then run
84
84
85
- git sizer [<opt>...] [<path-to-git-repository>]
85
+ git sizer [<opt>...]
86
86
87
87
To get a summary of the current repository, all you need is
88
88
Original file line number Diff line number Diff line change @@ -107,19 +107,13 @@ func mainImplementation() error {
107
107
108
108
args := flag .Args ()
109
109
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 {
117
111
return errors .New ("excess arguments" )
118
112
}
119
113
120
- repo , err := sizes .NewRepository (path )
114
+ repo , err := sizes .NewRepository ("." )
121
115
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 )
123
117
}
124
118
defer repo .Close ()
125
119
You can’t perform that action at this time.
0 commit comments