When I was a kid there were a lot more dogs running around loose. I had my jeans leg end caught in a dogs mouth briefly. I quit pedaling and grabbed my frame pump and gave the S.O.B. a whack. He let go and so did my pumps business end.
I had to turn around and ride back toward the dog to get my pump head. This totally freaked the dog. I guess he thought I was coming back for him. He walked away all non-nonchalant.
Generally dogs respond to your command voice.
__________________