#!/usr/bin/env python 

""" 
A simple echo client 
""" 

from login import LoginController

def main():
	login = LoginController()
	print login.USERNAME

# import socket 

# host = '' 
# port = 65535 
# size = 1024 
# s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 
# s.connect((host,port)) 
# while 1:
# 	inp = raw_input('Enter:')
# 	s.send(inp) 
# 	data = s.recv(size) 
# 	if inp == 'BYE':
# 		s.close()
# 		break
	
# 	print 'Received:', data

if __name__ == '__main__':
	main()

@@ -97,16 +97,34 @@
 main():%0A
+%09checkDirectory()%0A
 %09login =
@@ -165,16 +165,166 @@
 ERNAME%0A%0A
+%0A#method to check if directory is a git repo%0Adef checkDirectory():%0A%09try:%0A%09%09open('.git/config')%0A%09except IOError:%0A%09%09raise SystemExit('Not a git repo')%0A%0A
 # import

Check directory is git repo