mirror of
				http://git.whoc.org.uk/git/password-manager.git
				synced 2025-10-31 11:27:34 +01:00 
			
		
		
		
	add code to handle older version of GitPython
This commit is contained in:
		| @@ -56,11 +56,18 @@ class GitRepository(Repository): | ||||
| 	#	http://gitorious.org/git-python | ||||
|  | ||||
| 	def revision (self): | ||||
| 		return self.repository.head.commit.hexsha | ||||
| 		try: | ||||
| 			return self.repository.head.commit.hexsha | ||||
| 		except: | ||||
| 			return self.repository.commits()[0].id | ||||
|  | ||||
|  | ||||
| 	def areTherePendingChanges (self): | ||||
| 		return self.repository.is_dirty() | ||||
| 		try: | ||||
| 			return self.repository.is_dirty() | ||||
| 		except TypeError, te: | ||||
| 			return self.repository.is_dirty | ||||
|  | ||||
|  | ||||
|  | ||||
| #=================================================================== | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Josh
					Josh