Handling the case where ^ is a prefix on the git reference.
diff --git a/cmd/get_imports.go b/cmd/get_imports.go
index 538c2ca..028d8d8 100644
--- a/cmd/get_imports.go
+++ b/cmd/get_imports.go
@@ -365,7 +365,10 @@
 		}
 
 		ver := dep.Reference
-		if repo.IsReference(ver) {
+		// Referenes in Git can begin with a ^ which is similar to semver.
+		// If there is a ^ prefix we assume it's a semver constraint rather than
+		// part of the git/VCS commit id.
+		if repo.IsReference(ver) && !strings.HasPrefix(ver, "^") {
 			Info("Setting version for %s to %s.\n", dep.Name, ver)
 		} else {