Skip to content

Commit 7989ff9

Browse files
committed
Added descriptive error if run outside of a git repository
1 parent cb35b0c commit 7989ff9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/git-media.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ def self.get_pull_transport
123123
module Application
124124
def self.run!
125125

126+
if !system('git rev-parse')
127+
return
128+
end
129+
126130
cmd = ARGV.shift # get the subcommand
127131
cmd_opts = case cmd
128132
when "filter-clean" # parse delete options

0 commit comments

Comments
 (0)